Refactor: libcrmcommon,libpe_rules: replace update_field()
... with a new function pcmk__add_time_from_xml() in libcrmcommon.
The new function has a doxygen block and unit tests, returns a standard return
code, uses an enum to select the XML attribute name and addition function, and
has better argument validation, comments, and formatting.