Middleware to add the "/" if needed

I think it's called ReplacePathRegex, not ReplacePath. Also if you use both stripprefixregex and replacepathregex you should give them different names using strip-prefix for both won't work...