Spectroscopy of 600 faint field galaxies at CFHT: luminosity function to z=1 and properties of blue emission-line galaxies at z<0.3