Adds upvote/downvote POST logic to server.js.