Reset CURLOPT_CUSTOMREQUEST before each new request method.

This avoids issues with the state crossing over multiple requests, as cURL treats this field
as more authoritative than CURLOPT_POST, etc...
Merge pull request #30 from maetl/curlopt-custom-request

Reset CURLOPT_CUSTOMREQUEST before each new request method.