Refactored, debugged, added TODOs, and fixed virtual fields on models.
Added Codemirror in a rough, early form.