Fixes #240 and #216 Retry mongodb connection

- Retry if mongodb is down while river init till mongodb comes up
- Retry if mongodb isn't reachable while processing the oplog