Universal error support (at least for teachers)

Looks better too
Note: common.js now contains debug variable to suppress errors in
production