Added optional proxy configuration

I've added the option to provide a proxy config to CURL. Could be extended to use proxy auth if needed.