Improved the code for proxy feature 

1. Improved the code for proxy feature.
2. Renamed the property of proxy to 'http_proxy'.