DRILL-7590: Refactor plugin registry
Major cleanup of the plugin registry to split it into components
in preparation for a proper plugin API.
Better coordinates the named and ephemeral plugin caches.
Cleans up the registry API. Sharpens rules for modifying
plugin configs.
closes #1988