Add a Codemirror theme to the page
Use a dark theme for CM editor
Remove asumption on actual runtime type of the editor