Refactored tutorlib/TutorEditor.py and associated files

This is not a complete refactor; a lot of things have been left the
same as before.

The whole menu system is clunky as hell.  I'll attack that (probably)
when it comes time to deal with TutorialApp.py