log messages in json to stdout (console) like we do in the ui
Merge pull request #361 from jacqui/master

log messages in json