JSON Formatter

Implement a JSON formatter for the `aqd` RESTish interface.

This is required to support the "awesome sauce" that we have been brewing.