make template fetch timeout configurable and handle failure
use config for timeout
Merge pull request #248 from typesafehub/fix/template-fetch-timeout

make template fetch timeout configurable and handle failure