Fixes #595 Added support for HTTP_PROXY and HTTPS_PROXY environment variables,

if the proxy option isn't already set. I added a test based off of test-proxy.  I know it doesn't cover a number of different permutations on the variables. I can probably expand on it, if necessary. Leveraged the logic from npm, as noted in the issue comments.