Fix tab key to produce spaces in editors
Fix tab key to produce spaces in editors

Also centralize creation of CodeMirror editors (instantiation is growing increasingly complex).

NeilFraser/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,google/CodeCity,google/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity