retry connections to mongodb or redis if they aren't up at startup, fixes #25