Support HTTPS proxies
Throw an error for unknown proxy types

Throw an error instead of failing silently
Merge pull request #2 from michaelansel/https-proxy

Support HTTPS proxy