Allow the HTTP_PROXY env var to configure http proxy

/to @ritch 

Some companies use http proxy to access the internet. The PR allows them to configure it by set the HTTP_PROXY environment var. For example,

HTTP_PROXY=http://myproxy.com:8080 npm install