Added App::middleware method to inject middlewares onto Stack.