Configurable build-app and unittest logs

Output from those stages is in a JSON format
as set forth in the stage-logs spec.

Change-Id: I050d8ed0d49ca3679ea62b8d6ee4165f227193ba