move voting logic to module, moved vote.vs.erb to shared and updated controllers