Fix last_sent_term for a cluster node. Also, fix append entries msg
definition to have max number of log entries allowed.

This commit fixes the last_sent_term to be set the actual term that is
sent instead of setting it to current term. This was problematic where
the entries were from previous term.
logEntries in append entries msg is increased to the max number of
entries allowed.