Add JSON output to igprof-analyse

* Use --json / --js to produce a json file as output. Useful for standalone viewers and to import in NoSQL DBs. Might produce quite large documents, especially for memory profiles.