basic backend functionality implemented
extended handling of websocket comms