Refactor: daemons: Move functions from libp-i into the daemons.
process_pe_message and libpengine_fini are only used in
pacemaker-schedulerd, so they can just live there. A couple other data
types and macros moved along with them to make sure everything keeps
building.