User http_proxy env variable if exists
Merge pull request #150 from ccverak/master

Fix HTTP in proxy mode when using corporate proxy
Handles failure of proxy to connect to remote