handle closed websocket connections
upgraded ws-mux to get the bugfix
moved socket handler out of setup module + updated dom module to match
the new data format
updated import / dump to match new format