PHP Class Interface for HTTP requests through cURL