Self-Consistent Treatment Of Neutrino Physics In Cosmology