refactored payouts calculator

Since all arguments needed to calculate a payout are based on poll
attributes, we just pass the entire poll object as an arg.