[FIX] long-polling: use start()/stop() instead of serve_forever().

This is done so detecting a possible PPID change works.
(So that the worker dies when its parent dies.)
[FIX] setup.py: added gevent and gevent-psycopg2 dependencies.