Tree based URL path router, useful for building a router with subroutes