Merge pull request #1111 from kacfengine/master

Remove leftover header.
Transitioning to a new Call Collect mode.

Currently we were copying code from cf-hub into cf-serverd to do the
query. This led to some problems regarding both synchronization and
code understandability.
The new approach is to share the connection received by cf-serverd with
cf-hub and let cf-hub add the connection to its internal queue. That way
cf-hub will take ownership of the connection and query the agent at its own
convenience.
Merge pull request #1110 from cduclos/call-collect-agent

Transitioning to a new Call Collect mode.
Compilare necessus est.
Log new function result cache entries and hits

Remove FnCallShow, use existing FnCallWrite
01_vars/02_functions/execresult_multiples.cf: fix test for new logging
evalfunction.c: give FNCALL_OPTION_CACHED to more functions
Merge pull request #1115 from kacfengine/safe_open

Implemented safe_open() in order to avoid symlink race conditions.
Merge pull request #1117 from kacfengine/safe_open

Work around fdopendir() missing on some platforms.
Add missing header.