Move proxy environment variable handling to bag.http.requuest and bag.http.proxy .