Add the CTF management code from the demo/volume-sandbox branch

This continues the steady march of pulling in features from the experimental `demo/volume-sandbox` branch. This replaces the save/load context menu actions in the CTF editor with a `CtfManager` class which allows a more user-friendly CTF-wrangling UI to be built.
That should handle weird input better now.