Trim trailing slash from base path.

If base path is something like '/' or '/alto/', with a mapped route like '/asdf', the generated route to match will be '//asdf' or '/alto//asdf'. This change prevents the base path trailing slash from conflicting mapped route.