Enable compression gzip/deflate compression in Rails-generated content if the client supports it.

Compression was already enabled in Apache (in the staging and production environments), but only for HTML content. Rails-generated JSON responses were not compressed by apache, which meant bigger size of JSON responses, less responsive user experience.