Add a soft limit to the number of xtrace metadatas required before
automatically merging.
Switch the JSON library we're using to an actually fast one.  Also try
to speed up the JSON API to output intermediary results, so as not to
eat up memory.
Small code modification to straight-up remove the 'never visible' nodes