Added undo support for structure tag operations

Undo/redo should no longer trigger "text not allowed here" messages.