Make CodeMirror configurable

Both on a per class and per instance basis, using an option dict
in constructor and per class dict