Rewrite cURL options with flexible framework

Passes rspec. This rewrite is needed for a future commit that will support many options 'out of the box'.