basic proxy support

Basic support for HTTP proxies including CONNECT transparent proxies
for SSL connections.