Added message counters and a counter for slave timeouts during recovery in Master.

Review: https://reviews.apache.org/r/20638