Move logout action to websockets protocol, Add required key 'action' to response