* Limited batch replication size to 1000.
* Improved batch message processing.
* Cleaned up code.
Merge pull request #1364 from mdogan/improvement/3.2/replicated-map

* Limited batch replication size to 1000.