Fixed up voting logic

Stopped using local storage -- now storing everything appropriately in
users table.