Add support for SSL
Add support through HTTP proxies (without SSL)
Add support for a basepath in URLs