refactor(agent): Clean up job state tracking

* Stash job state using TrackJob
* Track target state of all jobs scheduled locally
refactor(agent): Quit calling to the registry on Purge
fix(agent): Publish target states in Agent debug dump
fix(test): fix/simplify TestConflictsWith