added gzipresponse so that responses are gzipped if client supports it