Modularizing the middlewares
Adding middleware to load in settings