pushes code from controller to model layer and adds some before actions for setting variables in the vote action. Also fixes a deprecation warning in the user model for talent search mehtod. scoped is now where(nil)