xapian-bridge C port

endlessm/eos-sdk#2463
I've changed how this setup works now - it should be much more robust.