Since we're not using superagent to get the package files, superagent-proxy wasn't really taking effect. I've extracted the proxy agent mapping and caching logic into the `proxy-agent` module, so that we can use it directly with the `http`/`https` modules. This fixes the --proxy and/or `http_proxy` env variables for realz
Support for the .netrc auth was removed in 6a04a0c. Now the auth encoding logic is normalized into an external function, which both the .getFile() and .getJSON() functions use. As an added bonus, manually passed in auth credentials now work with .getJSON(). Previously only the .netrc file would be accounted for.
… up after errors