contrib/reindent.pl: add srv and sub extensions to cfengine3-mode
Give a unique port number to one serverd test.
Replace shell variable with file

Debug output was being truncated always at about the same point, which
turned out it happens because of some limit to environment variables
size imposed by bash when it's run in as /bin/sh. Since our debug output
is huge it make much more sense to store it in a file in WORKDIR.
Fix agent debug log filename.

For debug runs, agent debug log filename was garbled since test_name
contains full path. The debug log is now simply named agent-debug.log.
Keep agent output in the stdout stream...

...when spawning an agent in cf-serverd acceptance tests, it's needed
for the testsuite to scan for "Pass" or "FAIL" keyword.
Re-enable all cf-serverd tests.
Reindent.
contrib/reindent.pl: allow explicit mode spec on the command line
Merge pull request #1542 from jimis/minor

Do not truncate even the longest debug output
Record agent info log for all runs even for non debug runs.
body server control: allowlegacyconnects

Which IPs or subnets to allow connections from, even though they are not
using the latest protocol.
Stylistic changes.
Fix old protocol client_code segfault.

Also reverted opaqueness of ConnectionInfo and restored direct access to
it for the relevant client_code. I expect that at least for libcfnet
internal usage I don't have to deal with abstraction layers.
Merge pull request #1545 from jimis/minor

Record agent info log for all runs even for non debug runs.
Silence warning when compiling without XML.
Moving documentation in .c files from header files.

This is documentation the programmer has to see the moment he looks up
the function name, and currently most (all?) editors take you to the
implementation, not the declaration.
Demoted cf-serverd client-triggered errors from LOG_LEVEL_ERR to NOTICE.
body common control: protocol_version
Define CF_PROTOCOL_LATEST same as CF_PROTOCOL_TLS.

Also make the code a bit more future-proof, if more than one protocols
ever exist inside the TLS layer.
Applied review corrections to Changelog.