Add a test that shows the problem.
Output additional header stuff.
merge mmcm: OutputFormat json_with_meta_data meets INSERT .

https://code.launchpad.net/~mmcm/akiban-server/pg-returning-json-with-meta-data/+merge/160496