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.

why did you change this from being a constant to a method?