Port ScriptingSystem to use the wx menu manager.