Added sgevents plugin and made actual command simpler

That way, bapp is only used in the plugin (while allowing subclass overrides).