begin reimplementation of master election
Fix master detection
setup cache
Send if node is master
Fix master storage
remove master attribute
Revert "remove master attribute"

This reverts commit e2be5c1f7049585463e4409ed53fbf469bb9bbd8.
Remove console.log
Merge pull request #4 from normanjoyner/election

Refactor master election logic