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

* be stricter about metadata.json data
* fix the apps we have in the tree
(cherry picked from commit 7d8f462d9402c306fa243c96c3d660a399128acc)