use persistent player id to prevent logout between browser sessions
Change song end logic, song_end event does no longer end the other user's song

This was the apparent cause of race condition
Use wss or ws dependent on how we serve the page
use the timeupdate event to calculate whether the song has ended

It is apparently more reliable