pub fn parse_command(v: &Value) -> Result<Command>
Validate one action. Everything a peer would see is checked here, so an action the executor accepts is one the session can carry out.