add koa state support

As stated in Koa doc, "locals" variable should be set in this.state so we need to merge locals with it.

btw i don't really see why there is `locals` in options as it's not contextual.