Added support for trailing slashes in routes

m.route now matches a path with a trailing slash against a route without one.