support timeouts
improve support for PUT and PATCH calls
Merge pull request #3 from graydon/master

Minor enhancements