feature: machine-readable logging

This is a private, work-in-progress branch for machine-readable logging.

Some progress has been made, but there are still a few things that need doing.

Yeah, it's fine since its just for testing.