Integration between psycopg2 and gevent.

At last our database queries are non blocking!
Patch *WS so that all requests are handled synchronously.

The patch is rather quick and dirty (although not inefficient).
It will require some more care later, but now I'm concerned with
making things work.