Added support for connecting through a proxy.  Don't ask why I'm adding
this unless you want me to cry.