Added support for system proxy

We have added support for the system proxy, so that it is used to upload the files

This is necessary for servers which need a proxy to communicate to the outside world