core: Log an error when we fail to parse a worker buffer to a kvvec

A fixme comment with an actual oneline fix. That's just plain odd.

Signed-off-by: Andreas Ericsson <ae@op5.se>
libnagios: Add the 'fanout' api

Fanouts are useful to hold expiring 'long'-indexed data where
the span between smallest and largest key can be too large and
change too often for it to be practical to maintain a "real" array.

For Nagios, that currently matches downtime, comments, and jobs
assigned to worker processes, where either linked lists or some
form of dynamic array lookup is done today.

Signed-off-by: Andreas Ericsson <ae@op5.se>
base/workers: Assign job-list management to libfanout

It was by far the clumsiest code in the worker manager, and since
clumsy code tends to harbor bugs, we replace it with the elegant
and obviously correct code in libfanout.

Signed-off-by: Andreas Ericsson <ae@op5.se>