Nuclear matter and its role in supernovae, neutron stars and compact object binary mergers