Mark's networking code

As cleaned up by @ediosyncratic using git filter-branch (among other dangerous tools).
Includes several fixups from later in the branch, but I may have missed some.
Compiled locally and passes all unit and acceptance tests.  Let's see how it fares more widely ...

I suspect reviewing the gross diff is easiest, as there are (even after squashing out a few) quite a lot of changes of mind along the way.  Also: 106 commits.

There is a redmine ticket on this somewhere... would be straightforward 
to make a test, if I haven´t already done so..

On 14/07/14 08:46, Kristian Amlie wrote:
>
> In libpromises/cf3lex.l:
>
> > @@ -81,7 +81,7 @@ promises   bundle
> >
> >  body       body
> >
> > -nakedvar   [$@][(][a-zA-Z0-9_\[\]\200-\377.:]+[)]|[$@][{][a-zA-Z0-9_\[\]\200-\377.:]+[}]
> > +nakedvar   [$@][(][a-zA-Z0-9_\[\]\200-\377.:]+[)]|[$@][{][a-zA-Z0-9_\[\]\200-\377.:]+[}]|[$@][(][a-zA-Z0-9_\200-\377.:]+[\[][a-zA-Z0-9_$(){}\200-\377.:]+[\]]+[)]|[$@][{][a-zA-Z0-9_\200-\377.:]+[\[][a-zA-Z0-9_$(){}\200-\377.:]+[\]]+[}]
>
> Or is this what the |vars_in_arrays.cf| test is about? /me is confused 
> about regular expression! :-)
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/cfengine/core/pull/1837/files#r14866055>.
>

-- 
CTO and Founder CFEngine
Author of In Search Of Certainty: The Science of our Information 
Infrastructure <http://markburgess.org>