add koa state support, see koajs/koa#366