Minor cleanup to the style of the Curl module

* Fixes indentation
* Remove superfluous type declarations
* Move bits of code around to simplify creation of new subclasses

To do next, add `String::uri_get`. @lucasmatthieu, do you still have that code somewhere?