Clear selection on undo/redo to avoid potential crashes
Add basic map backup system

Makes backups of maps on a per-archive/per-map basis, currently only on save or map open (might add background saving of backups on a timer at some point). Also might be extended to all archive entries in the future
Fix map entries saving incorrectly when saving a new map twice
Merge branch 'master'