fix jsonmessage in build
update doc
disable progressbar in non-terminal
Merge pull request #3096 from dotcloud/fix_fix_jsonmessage

fix jsonmessage in build