xapian-bridge C port

endlessm/eos-sdk#2463
Mmm, not a lot of point in changing it now that I've already dealt with the spaces/newlines... So I think I'm going to keep it there.