[Engine] Correctly loads/decodes/decompresses layer data.

Added zlib stuff.