Add test using maplist for dynamic inputs

Ref Redmine:3315
Redmine #4203: Fix software reports having "env" as package manager.
Redmine#5342: add docs for packages functions
Redmine#5342: document VerifyPackagesPromise PackageSanityCheck PackageListInstalledFromCommand ReportSoftware
Redmine#5342: document GetCachedPackageList VerifyInstalledPackages FindLargestVersionAvail.  Document and fix bug in IsNewerThanInstalled
Redmine#5342: document PackageAction2String.  Document and fix bug in AddPatchToSchedule and AddPackageToSchedule.
Redmine#5342: document CheckPackageState and fix some doc typos.
Redmine#5342: rename VersionCheckSchedulePackage to WillSchedulePackageOperation and document it
Redmine#5342: document and simplify VerifyPromisedPatch
Redmine#5342: document and simplify VerifyPromisedPackage
Redmine#5342: document and move InvalidateSoftwareCache
Redmine#5342: document ExecuteSchedule
Redmine#5342: document ExecutePatch, ExecutePackageSchedule, ExecuteScheduledPackages
Redmine#5342: add brief doc on overall structure of verify_packages.c
Redmine#5342: undo simplify VerifyPromisedPackage
tests/acceptance/dcs.cf.sub: if CFENGINE_COLOR=1 and colordiff is installed, use it
Redmine#5342: create PACKAGES_CONTEXT and PACKAGES_CONTEXT_ANYVER macros
Redmine#5342: logging improvements and unfold hairy code in WillSchedulePackageOperation
Redmine#5342: document SchedulePackageOp
Log data from network with LogRaw().