Added a CodeMirror editor for config.
Handle config save on server.