convert all middlewares to koa type
thunkify all proxy
Merge pull request #198 from cnpm/koa-middlewares

Koa middlewares
change controllers/user.js to koa
finish registry user controller koa and update mm to support thunkify. fixed #196
fix auth middleware
Merge pull request #200 from cnpm/koa-controller-user

Koa controller user
dev commit
convert registry/module.js to koa type
fix all the test of registry module.test.js