Create base/extension_registry and move some major components to it

The main remaining extension point that hasn't moved to extension-registry
is the analysis_sub_view system. That's next.