4josh - [Feature] Undo/Redo; [Feature] NSAlert against "Quit with modified backup"; some small improvements, code cleanup and refactoring

For details see embedded commit comments