codemirror refactoring more

created editorConfig and editorUserConfig globals for codemirror
configs.
userconfigs can override default configs or add on.
added some new options
Cleaned up some ui with adding new components, focus input, min height
etc.
Cleaned up variable names