Cleans a la jshint.
Refactors SC.UndoManager to allow easier grouping. Includes unit tests.
Renames SC.UndoManager#levelsOfUndo to maxStackLength for clarity.
Refactors SC.UndoManager, adding support for the target/action pattern via registerUndoAction. Deprecates registerUndo. Improves documentation.