voting & post ranking

I'll look into the reddit source code later (and clean up the crazy
voting stuff here), but for now this is working