Express/Connect middleware to handle trailing slashes with options