Assorted fixes for 1.0

This tree is a set of non-revolutionary changes which fix minor bugs, UI glitches, and improve debuggability of CMS. I hope they're all suitable for 1.0.