Added HTTP compression + tests

This is @Narigo's HTTP compression work plus my minor adjustments in order to have a single test class and be able to find out when a test fails, which compression settings the client has.