-Update only what needs to be in JSON
-Remove dead code
-Re-organize some code
-Fix cell highlight regression (no longer selected dark or light on
luminance; behaviour restored)
-Close debug console in debug mode when app closes