Add proxy support for plugins download.

This is a fix for plugins' proxy support, it reads proxy settings from the environment variables "http_proxy" or "https_proxy". You can refer to the issue #1094.