Routing middleware for Koa with support for handler chaining