cf-serverd: free getaddrinfo() result, on error of OpenReceiverChannel()

getaddrinfo() may allocate the 'result' struct even in cases where it
will return an error. Take care to free memory, although we would exit
the server process anyway.
cf-serverd: getaddrinfo() will use a numeric port, no lookup

This `AI_NUMERICSERV` flag avoids looking up the "services" table for
a string port resolution, according to the manual.
cf-serverd: getaddrinfo() will NOT set "errno" upon failure

It has its own `gai_strerror()` function to resolve its (reentrant)
result code.
cf-serverd: fix typo for addrinfo constant

As spotted by Dimitrios Apostolou
Add test using maplist for dynamic inputs

Ref Redmine:3315
Zendesk#1312: add acceptance test for array indices
Merge pull request #1603 from jimis/protocol_roundtrips

Protocol roundtrips
Verify expanded rval type before putting variable

Add acceptance test. Close #5302
Remove Rval/RlistShow, use Rval/RlistWrite
10_files/09_insert_lines/nothing_to_repeat_error.cf.sub: fix inadvertent breakage
Fix do not return PROMISE_RESULT_CHANGE from vars and class actuators

This impacted repair status indirectly for methods, and thereby services.

Close #5273
PromiseResultUpdate, do not let SKIPPED override NOOP.
Factor out RenderTemplateCFEngine, RenderTemplateMustache
Only commit mustache template to disk if rendering is successful

Use Buffer instead of Writer for MustacheRender. Redmine #5292
Restore BSD conditional fix

This change was bundled with another, and was subsequently lost when
permissions changes commit was reverted. See
https://github.com/cfengine/core/pull/1593
Permissions changes for FreeBSD/Solaris

The initial commit was reverted (see
https://github.com/cfengine/core/pull/1593 for background). Instead of
changing permissions for all nix systems then, differentiate between
(FreeBSD|Solaris) and others. This bloats up the tests, but hey.
Merge pull request #1606 from aappilattoq/master

Special bit permissions: take two ; restore BSD conditional fix
When deleting, entry not found should not be logged as an error
Various files were missing from the make dist tarball. Also fixed some whitespace issues.
Merge pull request #1609 from jimis/proper_tarball

Various files were missing from the make dist tarball.