Close scope in the correct order
Create router at runtime from a list of rules

A prototype using reflection.