Add proxy CONNECT support to webclient.py

Adds proxy CONNECT support based on @sabren's pull request incorporating fix mentioned by @scottyallen and subsequent changes to webclient.