Added commands for cut, copy, paste, select all, redo, and undo

Fixes #541