Refactory editor
Rewrite the source code.
Fix Gruntfile to the new structure.