Implementing the server and websockets bit