Updated CURL.php to add debug information to the class

Get debug info by CURL::debug(), or when inspecting thrown errors, debug info becomes included in the error object.