Add external common files

These are my "stdc" things; also the undo-redo manager.