pub fn process_message(state: &mut State, action: Actions) -> bool
Process a nix JSON message and update state