Server changes for resolving against non-doc-root paths.

Make * pattern in router return rest of pattern in the match_dict.

Improve resolving of urls against a non-default base.