Fix a bug with error handling in clay.http and add unit tests for it
Merge pull request #19 from uber/http_unit_tests

Fix a bug with error handling in clay.http and add unit tests for it