handle gzip encoded content
Created by: ChaosSteffen
Basically this is an updated version of this pull request: https://github.com/intridea/oauth2/pull/159
We are still having issues with this in 2.2.5, which causes us to do some very dirty hacks around that.