Rename window attribute to windowId
WindowId is integer, not string
Convert initSession function to lua
Update koa-resource-router