rewrite JSON Editor to follow ERP5JS conventions
- jslint
- drop duplicated loopEventListener
- use rjs.onEvent method to reduce the number of created listeners
- use domsugar to make the code more readable
- start to use mutex
This will create a new commit in order to revert the existing changes.