Added a compressor interface for easy compression

So far only a gzip implementation is present

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>