Added an in-game map editor

I polished my ingame-map-editor branch for #3377 to allow the workflow of creating a blank new map, editing the terrain tiles and saving the map. Next is actor placement (at least spawn-/waypoints) and modifying the resource layer.
This was a hack that was never meant to be committed as part of the final editor.