backend: Document view.
backend: Add test for OnSelectionModified + fixed issue spotted during
when documenting the code.
backend: Document undo
backend: Remove TODO and update doc now that I've reacquainted myself with the undostack
backend: Document events
backend: Document key