From Black Holes to the Big Bang: Astrophysics and Cosmology With Gravitational Waves and Their Electromagnetic Counterparts