Add a base class for plugins.