[WIP] Fix to work when upstream proxy require authentication

Browsers can not use pacproxy when upstream proxies require authentication,
but curl or wget can work with those upstream proxies.

Fix to process 407 response correctly from upstream proxies.