Make download_adapter aware of no_proxy environment setting

If you have a http_proxy set but the URL you download from is matching your no_proxy list, set the proxy.host to nil. There is some fiddling around with the entries in the no_proxy list, as in most cases we have domains in there, starting with a leading '.'