quarry: Serve JSON output with appropriate MIME type

Change-Id: I3e89c192594c52b19b8ed24cba52906de120d497
Merge "quarry: Serve JSON output with appropriate MIME type" into production