add test for node 0.10
rename `params` to `query`
Do refactor with middleware, rename lib/middleware/index.js
=> lib/core.js
Update router plugin for new middleware