xapian-bridge C port

endlessm/eos-sdk#2463
You could consider turning off `pretty` in `test_generate_json` so that you didn't have to mind all the spaces and newlines yourself.