MongoDB connection tweaks

- Make sure we timeout if we have trouble connecting to the mongo server
- Use keepAlive, so hopefully our connections won't go idle
- Log connection events, so we can see what's going on under the hood

/cc @hampelm