Added in post function.
Changed response handling to be less strict on what it considers a failure.
Updated code to return response object.
Merge pull request #7 from chrisryan/master

Add support for POST, allow all 2xx and 3xx replies, and return full response (with headers and such).