Revert "Merge branch 'pr/50' into wip"

This reverts commit 54d224b751386412cd22de0115e95ac9c479b623, reversing
changes made to d9b80a62a1052fd7b1b2f68e951953156e31bdc0.
Added proxy support

Also for authenticated proxies using basic auth