Make unit test timeout configurable per project

Falling back to "manual" timeout calculation was
necessary due to bugs in the timeout gem that seem
to be related to threading.