Use staging instead of undo in annotation inspector

Keeping track of possibly temporary transactions and undoing them
later is what transaction staging was designed for.

Rename and refactor flags for legibility.

Change-Id: I9a2b516a82213b6fd55e52485e40be482231fa2b
Merge "Use staging instead of undo in annotation inspector"