Add vote-analysis.rb from https://gist.github.com/tserong/6521463