Bug 862418 - make the build more strict with bad metadata.json files r=f...

...abrice

* be stricter about metadata.json data
* fix the apps we have in the tree