adding selectCollection and getCollection handler
refactoring EditorView - major improvement and attempt to use requireJS
externalise components such as collection/shape/text