Add support for GZipped contents.

Moved this to a new PR because I messed up my upstream while creating the other PR.