Regsitration of middlewares using DI container markers added.