Add pending state for jobs.

A job is pending if it has been created, but not yet started. Once it
has been started for the first time, it should never re-enter the
pending state, only stopped.

This is related to the fix for IMMUTANT-243.