Fix wrong reference in vote function

Fixes a falsely referenced variable in voting related functions
Create JSON response for vote

Respond with the the voting success/failure and eventual new song
position encoded as JSON