use proxy settings if they exist
refactor(proxy): refactor some code for proxy
Merge pull request #18 from vvo/add-proxy

Add proxy