temporary implementation of socket.io for testing
added datachannels
housekeeping