feat(*): support nested routes, refactor config
test(router): refactor tests