Router match both last slash or not, a middleware to take care of need or not

// Path "/foo/" match, "/foo" not
router.Group("/foo", func(r martini.Router) {
	r.Get("/", bar)
})
x is not a very descriptive name for the variable.