add blocking mechanism after 2 pending persist batches
make maxPendingPersistPeriod configurable
review comments
review comments
rename maxPendingPersistBatches to maxPendingPersists
review comments
Merge pull request #361 from metamx/worker-oome-fix

Worker oome fix