Refactor: libcrmcluster,daemons: best practices for node cache functions
Add doxygen blocks, and follow current formatting and naming guidelines.
This does not update internal functions related to crm_proc_flag, because those
need a larger overhaul.