Moved the request parameters argument to the request method before less frequently used arguments.
Improved the response header handling.
Added missing curl_errno variable.
Added user and group related API methods.
Abstracted the request-related methods into a separate class.