Adding support for proxy

Adding support for proxy use
Merge pull request #12 from davefx/patch-1

Adding support for proxy