Shared backend selection for the metadata stores (Redis, Kubernetes CRDs, and an
in-memory backend behind the memory-backend feature for tests and local dev).
Reusable server entrypoint. main is a thin shell over run_server so the
whole startup path (registry, P2P state, health, reaper, graceful shutdown) can
be embedded by a downstream binary that provides its own configuration or services.