Add limit on number of entries in one message.

Before leader sent all entries, which are not replicated, in one append message. It might break normal work of the protocol due to long time needed to process such messages.