Moved all dialog functions out of the Mapeditor into separate files