Make voting work with the submit button and update votes.

authors: rbkillea
Notably, although this was done using miguel's computer, miguel didn't work on this with me.