examples: fix up examples for acceptance test and print old output when different
examples: more fixes for acceptance tests
examples/remake_outputs.pl: run diff if outputs differ
examples: even more fixes for acceptance tests
examples/filestat.cf: fix for acceptance test
18_examples/check_outputs.cf: reenable
examples/lsdir.cf: sort filenames
Expand related first-pass cleanups
examples: adjust ip2host.cf test
examples/classesmatching.cf: add new output class to output
String input to ExpandAndMapIteratorsFromScalar is mutated, not const
Bufferize ExtractInnerCf3VarString
Add ExtractScalarPrefix, bufferize in ExpandAndMapIteratorsInScalar
Avoid copying scalar in ExpandAndMapIteratorsForScalar

This was done to deal with functions that needed null termination
Add BufferNewWithCapacity, BufferGet
Fix incorrect array size causing stack corruption.
Add libcompat/getline
Make CfReadLine (potentially) dynamically allocate memory

This changes CfReadLine to work exactly like posix getline, except
that it does not include carriage return at the end.
Allow LoadFileAsItemList to load files with lines longer than 4096 characters

Close #3882
Update promise result from agent bundles