Added logging, modified castVote to handle post instead of put for
simplicity