Corrected cURL option parameters per PHP docs

- The PHP cURL function curl_strerror() requires PHP >=5.5.0 so I created a fallback function to return the official cURL error string for users not running a PHP version that recent.
- Also corrected error handling function to properly log resources passed in which can't be var_export'ed and have to be serialized per the PHP docs.