Refactor: libpacemaker: expose resource injection within library
Rename inject_resource() to pcmk__inject_resource_history() and expose within
library, to prepare for moving stuff around.
Also add a doxygen block, improve log messages, and tweak formatting.