Running jobs periodically

You can activate/deactivate a job (= run it periodically) or run it once.

If you deactivate a job and it is running at the same moment, it is not interrupted. We'll need to change this. I tried to disable re-activation until the job is done, but it turned out not to be so easy :P