https-proxy-agent: hoist out the common "hostname" string logic
https-proxy-agent: rename `secure` to `secureProxy`, added `secureEndpoint` option

A little lame, but oh well. This should make it possible to use the
HttpsProxyAgent to connect to non-secure "ws://" WebSocket endpoints.