added gzip compression and chunked http responses support