Multiple changes

Redo is now cleared when registering an action while not
undoing/redoing. Removed old code. Added LAST coalesce mode.