deployer: Track deployment state.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
scheduler: Cancel restarts when removing jobs.

Fixes #610.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>