Simplified TypeScriptService, hopefully it is more stable -- until it's replaced later.
F7 goes for 'undo' (needed for my tablet, where Ctrl+Z doesn't work somehow).
Huge progress on persistence.ts refactoring.