Substitute for '*' tokens in named routes.

The build function now substitutes the '*' token in named routes with the parameter value in the current url.