Initial work for killable build jobs

* [x] Jobs should be terminated after a predetermined timeout.
* [x] Jobs should be killable through the REST API.