fixed proxy support

Hostname passed to HTTP(S)Connection was incorrect when using proxy, ParsedResult instead of netloc was passed. I also added proxy support to Connection wrapper object.