Enhance and simplify Router (add $config option)