Changes for PluginRegistry

Corresponding changes for https://github.com/azkaban/azkaban2/pull/111