Finally won my fight against Gevent-SocketIO and Flask. And the database.
Merge remote-tracking branch 'origin/master'