Added undo history handler to be used for handling the executed commands
for a model.

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