Some HTTP sugar and fixes

Allows for adding arbitrary HTTP headers and select what scheme (http/https) to use.
Some minor fixes.