Make "make distclean" work again.
Merge pull request #724 from tzz/master

Redmine#2753: directory_can_not_readlink refine acceptance test
Improve autotest to fail also when cf-agent execution fails.
Merge pull request #722 from kacfengine/makeFix

Make "make distclean" work again.
Fix a typo
Fix ScopeDelete

Close #2781
Merge pull request #729 from sigurdteigen/master

Fix segfault resulting from bad ScopeDelete
Merge pull request #728 from tdlee/master

Fix a typo
Fix deadlock in cf-serverd, see redmine #2864.

Logging is removed from the signal handler until it is reimplemented as
reentrant (now it calls vasprintf() which calls malloc(), which is not
reentrant).

Also marked exit(0) in the agent for future removal for the same reasons.
Change select timeout to 1 second.

Previously the worst case for exiting was 10 seconds after the signal arrival.
Making libpromises the same version as the release
Merge pull request #730 from cduclos/master

Making libpromises use the same version as the release
fix for bug #2182. Added more params for the promises hashing algo
Merge branch 'bugwork/2182-cmds'
Close all databases as the last thing before exiting

...and keep mutexes locked to make sure they are not reopened by some
background thread.
Missing bug fix into ChangeLog
Output messages when starting and exiting

...since our signal handlers are silent now.
Typo fixes and updates
Merge pull request #732 from jimis/sighandling

Avoid deadlocks and error messages when exiting
Fix tarball generated by make dist.