Moved agent wrapping to HTTPClient.request. Adjusted module-api helper

This breaks various tests, because I assume the tests are not expecting the gzip related headers. What is your take on how to fix the broken tests?