Work on middlewares
Rename factory->middleware
Fix middleware signature
Drop not required app variable
Merge branch 'master' into middleware
Add tests for middlewares
Fix typo
Merge pull request #209 from KeepSafe/middleware

Middleware, second edition