refactored some of my javascript and vote processing, added in remember_me to login, cleaned up some code