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.
The turret thing is a known bug in the actor previews.  It is the main blocker of my rendercargo branch.