Router: moved _extractArgs into extractArgs module
Empty routes are optional.
Sanitize paths.