Add: gzip function

Added gzip function that returns a compressed
version if gzip compression is supported by
the server.
Part 1.

Signed-off-by: Alexander Christ <alex.christ@hotmail.de>