The app object now gets passed to middleware initialisation functions.