Fix SSL proxies

 - Proxy should be used for HTTPS and HTTP connections
Merge pull request #149 from jensnockert/fix-ssl-proxying

Fix so that the proxy settings are used for HTTPS connections too