Session changes and basic websocket stuf