Fix bug with route not using methods argument.

Bug reported by @edyburn.
Add missing return statements in befores/afters.

Bug reported by @edyburn.