Votescontroller

This adds the functionality of voting, and integrates votes into the views.