Support for connecting through proxy to non-https servers (was #21)

See #21 for details.

This is the same, but rebased to current master.