Refactoring & performance improvements for tests

* Improve performance of system tests & temporary jobs tests.
* Lower timeouts for various operations in test, so we fail fast and with details rather than being killed by the build system.
* Tweaks for CircleCI.