Refactor: libpacemaker: expose node state change injection within library
Rename modify_node() to pcmk__inject_node_state_change() and expose within
library, to prepare for moving stuff around.
Also add a doxygen block, and use a convenience function where appropriate.