Fix CheckIdentifierNotPurelyNumerical so it does not use IntFromString
format() function
First pass cleanup of CheckAutoBootstrap
First pass cleanup of SetPolicyServer
Remove various warnings
Harmonize uses of fgets()
Merge pull request #620 from lpefferkorn/fix_fgets

Harmonize uses of fgets()
Add proper inheritance scheme to Windows ACLs.

This required new syntax, and some old misleading syntax was also
changed:
  acl_directory_inherit -> acl_default
   specify_inherit_aces -> specify_default_aces
            new keyword -> acl_inherit

Fixes issue 1832.
Remove global BOOTSTRAP, add to GenericAgentConfig
Set class bootstrap mode in GenericAgentConfigApply, not in CheckOpts
Remove global BOOTSTRAP_AVAHI
Clean up bootstrap settings in agent CheckOpts
Made the acceptance test template more Windows friendly.
Remove superfluous checking and error messages
Shorten verbose names of variables
Fix segfault occuring when parsing old bootstrap options
Remove unused variables
Fix redmine #2561, "Bad file descriptor" in cf_closesocket(), plus some minor cleanups
Fix typo, freshly bootstrapped node was refusing to update
Fix bug in remote recursive directory copying