Continue genericifying AppController.  Use it in todofoam app.
Merge branch 'master' of https://github.com/foam-framework/foam