xapian-bridge C port

endlessm/eos-sdk#2463
Could use a comment for clarity about what keys are recognized in the `query` hash. (Although using `#define`s would help a lot to alleviate that.)