Refactor: libcrmcommon: best practices for more internal API functions
This is part of a project to ensure all internal library functions follow
current naming and copyright guidelines, and use the new standard function
return codes where appropriate.
This commit addresses functions related to time, logging, mainloops,
name/value pairs, and operations.