fix some stuff in ObjectGroup::load_xml
add encoding and compression to TileLayer::initialize
modify each_layer to define its type
add index methods to layer and map
Update of JSON stuff
fixes that changing the map size causes the layer to grow too
added tests for resizing the map
Merge remote-tracking branch 'upstream/master'