Modified undo- and redo command to use the new undo/redo methods of
model.

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