Make proxy: {type: :http} work for https requests

Before this change the code was trying to establish a secure connection
to the proxy server; after this change an unencrypted connection is used
to the proxy server which is itself responsible for making further
requests upstream.

Fixes: #146
Closes: #236