List of changes below:

- throw exception instead of returning invalid response
- added wrapper around curl_* functions that alows us to mock them
- wrote some test that covers curl error
Merge pull request #10 from piorek/feture-transport-exception-instead-of-invalid-response

throw transport exception instead of returning invalid response