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.
Or, you know... `base64.urlsafe_b64encode` them.