remove QTextCursor and QTextDocument from Text interface
add sanity check to texttools
fix state handling when editing lyrics/figured-bass etc.