Only create one instance per plugin class

Fix for issue #63. This will work even if someone defines two plugin classes in the same module.