Added middlewares
Merge pull request #19 from balkian/master

Added middlewares