contrib/enterprise/report.pl: script to make simple Enterprise reports easier
Merge pull request #1109 from tzz/feature/enterprise/report.pl

contrib/enterprise/report.pl: script to make simple Enterprise reports easier
Added safe wrappers to creat, chown, lchown and chmod.

To prevent race conditions in path lookup when we change attributes.

Continuation of issue #3693.
Merge pull request #1140 from kacfengine/safe_stuff

Added safe wrappers to creat, chown, lchown and chmod.
Add stub for generating diff states
Constify line parameter
Add hook for reporting
Fix: call diff generation before config cleanup
Add delta directory tree creation to agent init
Add untracked dir creation
Add AnchorRegexNew to matching lib
Add GetCsvLineNext function to deal with reading multiline csv from files
Extend csv parser test
Fix end of the stream corner case for GetCsvLineNext