Add compression API

Simple ZLib compression API for mods useful for, eg, WorldEdit schematics.
A `method` argument could be added in the future to allow other methods.