Use npm's proxy setting 

Prefer NPM's proxy setting over the system proxy. Don't use a proxy if none set.

This fixes https://github.com/Medium/phantomjs/issues/142.