implement gzip compression
make sure uncompressed sv will be gc'ed
support for custom header template