Extract HTTP logic into a separate module

Isolate the HTTP concerns in separate module. We can concentrate on the API specifics in the main file.

Also in this PR: Don't set the HTTP attributes `ca_path` or `verify_depth`. These can be configured via OpenSSL properties.

Fixes #15.