fix leader election, writing bogus 'leader' document
Merge pull request #31 from coryb/master

fix elasticsearch elector