Redmine#4694: fix prefixing public client key file in cf-serverd by username
Switch to extended regular expressions in testall grepping.

Using extended regular expression via escaping doesn't work on neither
HP-UX nor AIX, so we need to switch grep into real extended mode. Also
has the benefit of making the regular expression more readable.
Don't wipe out test directory before we have used its contents.

Fixes a "File not found" problem when trying to output the test log
for tests that suppress their failure.
Tag host-identifying variables as inventory.
cf-serverd: fix file-access path calculation, after symlink expansion

If we define an access rule to some symlink, like:
 "/var/cfengine/masterfiles" -> "/var/lib/cfengine/masterfiles"
then, pre-processing of the path will expand it to a longer string,
and thus "path_len" will be invalid.
Try to fix spurious 002.cf test failures.
Merge pull request #1559 from jimis/agent_protocol_version

Try to fix spurious 002.cf test failures.
Merge pull request #1557 from kacfengine/testall_workdir_fix

Don't wipe out test directory before we have used its contents.
Merge pull request #1558 from xrg/fix-server-access-promise

cf-serverd: fix file-access path calculation, after symlink expansion
File creation in 002.cf was in the wrong order.

I'm wondering how it was working all this time...
Merge pull request #1560 from jimis/agent_protocol_version

File creation in 002.cf was in the wrong order.
Merge pull request #1556 from kacfengine/extended_regex_testall

Switch to extended regular expressions in testall grepping.
Change to egrep to have more predictable error behavior.

If egrep should not be available that is. -E flag might mean something
else on an unknown platform.
Merge pull request #1561 from maciejmrowiec/master

Mark old report_data_select as removed instead deprecated
libpromises/evalfunction.c: nth() should check if arg is an int later
PreprocessRequestPath returns size_t.
Fix printf() warning, strlen() is size_t.
Old protocol AccessControl(): Resolve whole path instead of only directories.
Merge pull request #1564 from jimis/agent_protocol_version

Fix runagent denial with old protocol
Type check constraints with cf-promises

Redmine #4609