Add a general document interface for use in operations.
The UndoManager and TrivialUndoManager classes are adapted to the generalized interface.
Merge pull request #350 from vandenoever/genericDocument

Add a general document interface for use in operations.