API: libpacemaker: Add an injectable events structure.
This drastically reduces the number of arguments to modify_configuration
which will be helpful when it's called from more places.
Also, remove some unnecessary casting in the g_list_append calls.
g_strdup already returns a gchar.