Refactor: libpacemaker: Functionize reply validation in cluster_queries
This is already done for the controller requests. This commit extends
that to handling arbitrary IPC servers (currently only pacemakerd).
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>