Create managers node in ZooKeeper if does not exist.
- Perform leader election only if there's a majority of cluster members.
- Cancel leadership if lost connection with other members and there's no majority.
Added more entries to .gitignore