Surrounded call to pending/undo/redo with a PostOnlyTransactionHandler
to support posting changes but not changing the history of the
reference.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>