Refactor: libpacemaker: best practices when adding actions to graph
Add a doxygen comment for action2xml(), use bool instead of gboolean,
use convenience functions where appropriate, make task comparisons
case-sensitive, improve comments and log messages, and tweak formatting.