Refactored Registry::init to setters

Reason is to get registry to be more modular. For example, CLI scripts might
want to use registry but doesn't need to use router.