initial leader eletion
Bug fixes
merge with master branch
Leader election works with some optimization. Code needs clean up though
merged master
dont add node to tman during election