xapian-bridge C port

endlessm/eos-sdk#2463
Yeah but libsoup uses a completely different indentation style anyway ;)