rebuild basic data model
complete basic chatbox functionalities
minor structure reorganize
temporary rename editor.js for pending merge
Merge branch 'rebuild-publish-model'

* rebuild-publish-model:
  minor structure reorganize
  complete basic chatbox functionalities
  rebuild basic data model
merge with codemirror update and structure cleanup