Major rework of update events, splitting them into text and structure
changes.
Fixes #7: Barlines aren't updated during edit