New Codemirror option in editor config page to enable/disable autoclose-tag

Some unused directories have been removed.
Some functions have been optimized.