Merge pull request #1135 from cduclos/call-collect-agent

Call collect agent
Revert "Log promise iteration outcomes in enterprise"

This reverts commit 4fa377fc6de7287f2e6f76ba9a34e360abffbc9c.
Added comment after discussion with @dottedmag.
Merge pull request #1136 from kacfengine/master

Revert "Log promise iteration outcomes in enterprise"
Merge pull request #1137 from jimis/varfix4

Added comment after discussion with @dottedmag.
Redmine#3804: document exclusive upper bound of randomint()
contrib/enterprise/report.pl: script to make simple Enterprise reports easier
Merge pull request #1138 from tzz/feature/3804-clarify-randomint-upper-bound

Redmine#3804: document exclusive upper bound of randomint()
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.
Code improvements

Incorporating feedback received while reviewing the first iteration.
API improvements and code simplification.