Undo-redo and offline saving

Oh yeah!!!