Galaxies and the Cosmic Frontier