Redmine #6161: Core support for HA checking

As HA is enterprise only feature in core there are some stubs added
that will allow agent to check HA status.

(cherry picked from commit 13bffb469efc7116593d4e5ad580709fd9c278ca)
Redmine #6161: Removing HA related log message so in core.

Right now core users wont be flooded by enterprise related message.

(cherry picked from commit 838a6dd7586bd7c60ed2607139608ab9872faf1e)
Fix examples referencing input files renamed in a86052a2cd77f6cd39661a3c9306c12891bcb36b

(cherry picked from commit fbaddef00ae0afd0c97d67e4f8be80e7248b0ee7)
Fix references to bundle renamed in caedaf90544cf2222beeadc09d0e3b0b5ce6596a

(cherry picked from commit e1e4dd8a4dce9025b9822c835ffb49ac9def94a4)
Fix syntax error in example (and minor policy formatting cleanup)

(cherry picked from commit 20e7f63360ab7c5567ffefb967fc62c2ae5f39ab)
Modify test outcome on very specific Solaris versions.

(cherry picked from commit 5aa2e9433b9a58a1c9ee63c72c6f0bee423b8932)
Work around bug in /usr/xpg4/bin/grep on Solaris.

(cherry picked from commit 05e4b11907ff0f036eed44673f2120227609ab9d)
cf-upgrade should not close STDOUT of all forked commands

Now both STDOUT and STDERR of forked commands go to STDOUT and STDERR of
cf-upgrade. Previously it was just closed and e.g. dpkg was failing
because of that.

Modify the test scripts to actually test that.

(cherry picked from commit 5c884483b55c420bb376fea2fe6790f3837baf10)
Use even more compatible sed regular expression for AIX.

(cherry picked from commit 0ef7a4d34f09db310aa8a5c3a7d275db6d28a561)
sys/sysinfo.h needs to be included before sys/sysctl.h

Redmine 6328. Bug in old glibc, found on debian 3.1.

(cherry picked from commit 2a4cff524f1fff4ebcc34e0d1e60e046c5a49f93)
Merge remote-tracking branch 'upstream/3.6.x' into 3.6.x