Added new grunt tasks, reorder middlewares