Added commitUndo method in model to support commiting a undo transaction
with the built redoable.

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