better error handling for non-html requests & use req.flash when available
Merge branch 'master' of github.com:plasticpanda/httboom