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).