Bug 838657 - Implement a console reporter. r=julienw,eli

Rebased from https://github.com/mozilla-b2g/gaia/pull/11870 by @caiolima
Merge pull request #19738 from hfiguiere/bug838657-2

Bug 838657 - Implement a console reporter. r=julienw,eli