Support for proxy credentials in http_proxy

We don't really need this for Stackato, as http_proxy right now always points to
the polipo proxy on the host, but it doesn't hurt to make the code generic.

Ref http://bugs.activestate.com/show_bug.cgi?id=102823