A tool for dumping the content of a store.

Very useful when debugging.
Fixed race during HA slaves creation
Merge pull request #2877 from thobe/1.9-dump-store

[1.9] A tool for dumping the content of a store
Merge pull request #2899 from lutovich/1.9-too-many-slave-client-threads

Fixed race during HA slaves creation