Circular imports of FastAPI routers

Generally in a package, module router imports other modules (e.g. pipelines) that then import router. Workaround is making sure the .router.router object is the first thing imported. But endpoints should really just be registered in a top-down way, e.g. pipeline would not know anything about its API routing.