Added proxy support for provider, and added spec test

For people who use the module behind a proxy.