Modal refactoring

Template extension
Tweak CodeMirror line highlight
Attempting to clean up media frontend work
Loading indicator