allow user configuration of RestClient's max_redirects
307 redirects return with /REST/ in the path. get() doesn't expect that.
Merge pull request #25 from blentz/master

Fix redirect handling