send error messages as JSON
Merge branch 'master' of git://github.com/discore/discore