Refactoring job execution flow

Done:
* Job is removed
* Job.type moved to JobOrigin
* JobOrigin renamed to Job

Change-Id: I398e1cfad0ff691e3df8858992540a9de9e34927
Merge "Refactoring job execution flow"