The Cosmic Evolution of Star-Forming Galaxies