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.
`lua_State * L` -> `lua_State *L`