Add timeout and timeouts config options

Fixes #11