Fix issue when different proxies were specified in different requests.
Add test for proxy authentication
Merge pull request #61 from sschepens/proxy-fix

Proxy fix. +10 dev points!.