The Phenomenology Of Neutrino Oscillations In Cosmology And Core-Collapse Supernovae