Add job-state-transitions to Job History API

This one is dangerous. I don't think this should be changed now. That query (agent job run history) is the worst performing query there is. The API will be useless (too slow, bogs everything down) with this change.