Fixed regression introduced in edcb7a8 with does not propagate the HTTP proxy config to OAuth anymore

As a first step this is tested with a unit test that focuses on this specific aspect, after a small refactoring to OAuth class. An integration test for covering all interactions is being worked on.