Allow passing custom timeouts

Related to https://github.com/travis-ci/travis-core/pull/388

Tests pass, but tests for quite a few classes are missing.