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

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