Honor config resourceTimeoutMs

Fixed logic to default MS on  resourceTimeout if passed through to config.
Merge pull request #118 from mhemesath/patch-1

Honor config resourceTimeoutMs
OnResourceError -> onResourceError
Merge pull request #121 from Medium/nick-resourceerror

OnResourceError -> onResourceError
Merge branch 'master' of git://github.com/bslatkin/dpxdt