raft: write entry 0 into log
raft: restart using last written entry also
Merge pull request #1067 from unihorn/122

raft: write entry 0 into log