Add proxy support (2nd attempt)

This patchset adds proxy support in both _requests_ mode and _curl_ mode.
It also adds a new configuration flag (force_curl) in order to force curl mode.

With this patchset applied I am able to use it behind a corporate proxy.