refactored command.js + added a general undo button.
making jshint happy
drag_drop fix
Merge pull request #179 from bsplay/refactor_command

Refactor command + add general undo