Photometric Redshift And Ellipticity Measurements For Cosmology With Probabilisitic Neural Networks