Moved websocket and device code to it package