Use flashify to provide req.flash()
Some cleanup.

Depend on packaged coffeescript rather than globally installed.

Fix a couple of query.sort syntax errors.