Observational Studies of Emission Line Galaxies in the Near and Distant Universe