Proxy authentication handling in proxy middleware

Handled proxy authentication from spiders in a similar fashion as default proxies were handled.