Add experimental base for undo redo capabilities.

Experimenting with lambda based undo/redo functions in
QUndoStack. For now only implemented for logic item
insertion.