Find some otherwise lost changes from CodeMirror (Fixes #524)
Try to JSONify values early to get a better traceback in case of problem.
Fix up the recording.  Allow saving record logs locally (in localStorage).