Redmine#4694: fix prefixing public client key file in cf-serverd by username
Redmine#4889: check that unresolved variables are not allowed in promisers
Redmine#4719 validating user name both forr classic and TLS protocol.

If there are some characters in the user name we assume is invalid
connection with the client is terminated.
Merge pull request #1566 from tzz/test/redmine4889-unresolved-variables-in-promisers

Redmine#4889: check that unresolved variables are not allowed in promisers
Merge pull request #1569 from pasinskim/escaping_username

Redmine#4719 validating user name both forr classic and TLS protocol.
Merge pull request #1463 from pasinskim/tls_server_username_fix

Redmine#4694: fix prefixing public client key file in cf-serverd by user name
Redmine#4889: move test to staging
Fix agents downloading policy every 5 min.

Multiple causes led to this. First, the addition of a checksum in
cf_promises_validated. Since we don't guarantee that the masterfiles
directory on the hub and the inputs directory on the agent are the
same, the checksums could easily be different. This would lead to the
agent regenerating the cf_promises_validated, believing it to be
wrong, and then overwriting it again with the file from the server, in
an endless loop. Fixed by relying on timestamp once again, not
checksum.

Also, move the generated file back to masterfiles. Because a
cf_promises_validated is downloaded from the server, its modified
timestamp will be newer than the timestamp contained within it, which
will trigger regeneration. Next time around the same thing happens.

Also moved the internal validated_at config value out of the
GenericAgentIsPolicyReloadNeeded() function to avoid a const cast.
Remove checksum testing and comment out timestamp testing.

Redmine 4907. Checksums aren't used anymore, but timestamp checking
should be fixed in the test.
Correctly name packages for Beta 2
Merge pull request #1570 from kacfengine/cf_promises_validated

Fix agents downloading policy every 5 min.
Add missing const.
Fix DeMangleVarRefString with special symbols in legacy array indices

Activate acceptance test. Close #4301
Redmine#4909: staged test for the interpolation of empty lists
Fallback to bundle qualification in VariableGet

This should be structurally unnecessary, but is a temporary measure pending
rework in variable iteration. See comments in commit for more details.

Activate acceptance test, Close #4889
Redmine#4899: adjust acceptance test for new old behavior
Undo workaround for tests/acceptance/15_control/01_common/inputs_from_readstringlist.cf
Make sure to resolve for non-method bundle calls in DeRefCopyPromise

Close #4890
Merge pull request #1543 from aappilattoq/master

improve regexp to avoid bogus fails on HPUX
Make variable declaration as local as possible.