Cosmology and Astrophysics with Intensity Mapping