Add timeout settings and pass them to the worker

... so we can start defining custom timeouts.