Fix json parser to emit correct spans.

* Nested objects would make the parser assert.
Fix implementation of manifest json builder/analyzer.
Implement a "manifest_version" validator.
Improve manifest validator (validates "app" element)