Added request_class to BaseApp
Added middlewares to BaseApp