Added basic Curl error handling along with test case confirming error thrown.
Pre-commit fixes.  Tested for lint/sniffs/unit tests.  Fixed error checking bug.
Merge pull request #28 from brendanfmartin/curlErrorHandling

Curl error handling