Add gzip support.

Change-Id: I6ea6e0dcbe7234ad143403d262da6cb40e7d3b50