Add retry logic to mongo connections.
First patch all the monkeys with gevent.