make failure cause visible via job api

This change exposes the failure cause data via the Job API so it can be consumed by Jenkins API clients, i.e. for automated data collection/analysis.