proxy support

Basic proxy support implemented for modules installation, oembed and remote file downloader.
Note that proxy auth and noproxy features require php5.5+ as there are no curl constants defined in older versions. I couldn't test if the auth works as our proxy doesn't require authentication.