adds LogEntry type and derives lastLogTerm based on it
Updates test to make assertions based on actual state of log.
Updates type of Entries within AppendEntriesMessage.
Updates term when receiving append entries message.
Merge pull request #1 from wjdix/master

adds LogEntry type and derives lastLogTerm based on it