Refactored dahuapp.editor for binding keys.

- Removed unused imports.
- Refactored javascript editor code for it to fit with the new
  definitions of the keyboard and screen proxies.
Merge branch 'master' of https://github.com/dahuapp/Dahu