Move replay to a function for easier testing.
Add test for oplog replaying.
Merge branch 'birthday' of github.com:Clever/oplog-replay into birthday