Current thread in a variable
Cleaner exceptions, get_data, get_value, etc. as part of xapiand core
Client receives the socket class to be used (as when passing gevent sockets is needed)
Stop using subdatabases directly
Pass gevent socket and figure new socket out in the thread spawner function
Do not monkeypatch anything. Fix queues for gevent