Added support for proxy authentication

I needed this.