Move the gzip feature in its own middleware