introducing PNDispatcher and PNRenderer middlewares. removing registry. clean up in the routers