Make app middlewares not require specific instances of app
18 files changed