AJAX voting and associations

Added some improved AJAX voting, as well as associations between users and votes.