Conditionally gzips response Content-Types

This moves the logic of whether to gzip or not into the response writer
so that a whitelist of media types can match compressable content types.