Connect ControllerMiddleware in the app template.

This means no magic in the core which is a nice benefit.