new routers: DomainRouter and ModuleRouter

Refactoring based on https://github.com/nextras/static-router/issues/2