Wrap CURL error to make it look like API error

In cases, when there was a CURL error during API call it will be properly wrapped in JSON and returned back as API error (error code will be prefixed with `CURL_`). This way developer will clearly know that there was an error communicating with Panda API server.