Fix #19: Convert code to ES6/harmony/yield. We now use a generator/co-based style.
Updating tests to be consistent with the yield/co style.
Fixing bug where vote index could be beyond the number of poll options.