Did some cleaning up in RestorableModel.
Implemented mapping support of model history (undo/redo stack) and usage
of this in RestorableModel.

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