[TAV-377] Output JSON for the runs controller.

This is for integration with other systems, such as Scratchpads.