libtiled-java: Add support in TMXMapWriter for writing TMX files with layers compressed with zlib

TMXMapWriter in libtiled-java currently only compresses layer data in output TMX files using gzip. 
This patch adds support for using zlib compression using a "settings" property on the TMXMapWriter class.