Add a state machine to react to job update status changes.

Bugs closed: AURORA-613

Reviewed at https://reviews.apache.org/r/25300/