xapian-bridge C port

endlessm/eos-sdk#2463
I want to keep it that way for compatibility with the original code, which throws errors with the same id here. The code in `xb-main.c` will actually look at the error id to determine what response to send to the other side, so I think we should keep this.