raft: Add Term to SoftState.

Applications need this to detect when elections have occurred.
Uncommitted proposals may be dropped during elections and may
need to be retried afterwards.