ticket:2 Implemented middleware class and changed settings file to use it