[WIP] heartbeat from leader

1. Heartbeat from leader.

2. peer routines will not change any peer states and log states. Implies we can remove all related locks. 

next steps:

1. Cleanup the related codebase

2. Refactor snapshot related codes

3. Refactor SetCommit function