Further tune JSON error handling
Rename nimrodel 8-test to 8-util
Initial work on a JSON output format

The idea here is to have a two stage conversion process
beginning with flattening the internal semantics into
just a list of entity literals and then jsonifying it.

It's quite broken at the moment.