Add retry connection to peerjs server on login and peerjs server error handling

Closes #575