Clever/oplog-replay — pull request #30 by dfuentes (2014-12-26 22:29:33+00:00)
Title: Refactor replay

Refactor the replay package. This change breaks the replay into well separated pipeline stages, namely:

[parse BSON] ---op---> [controlRate] ---op---> [batchOps] ---[]op---> [applyOps]

Each stage controls the lifetime of their own output channels, closing them when appropriate. Each stage also properly exits early in the case of failure. The design of the new package is influenced heavily by [this blog post on pipelines](http://blog.golang.org/pipelines)
This update also makes oplog-replay compatible with go 1.3+.