Add a plugin class with configuration loading.