Refactor: controller: best practices for build_operation_update()
Rename to controld_add_resource_history_xml_as() for clarity and planned
relocation, and add a controld_add_resource_history_xml() macro to call it with
func.
Add a doxygen block, and drop the unused return value.