Added a matchRoute method to the router module that lets you match a route to the current url.