Text this: A multi-task deep learning approach for automatic classification and redshift measurement of astronomical spectra.