basic websocket impl

* player's shot gets reported and propageted to the viewers
* main view only shows the public state of the game
basic implementation of websocket events

also
* discard dead views after some unsuccessful trials
reporting current and next player to the views
new event: player joined

* refactored switch-case for event handling in js