Several fixes

Fix for #331, #332, #340, plus editor performance improvements so it feels less sluggish, and a fix for the problem currently killing staging.

The staging problem is that in the google spreadsheet, badges listed in pathways but not defined anywhere else blow everything up. :boom: