bugfix: imfile discarded some file parts

File lines that were incomplete (LF missing) *at the time imfile polled
the file* were partially discarded. That part of the line that was read
without the LF was discarded, and the rest of the line was submitted in
the next polling cycle. This is now changed so that the partial content
is saved until the complete line is read. Note that the patch affects
only read mode 0.
minor cleanup
refactor stream.h; fix some issues with last patch

Most importantly, the last patch for imfile contained a number
of glitches, which are fixed by this commit (a memory leak under
unusual conditions, partial message loss when rsyslog was
terminated in the interim & mixing file data to the wrong files
when multiple monitors were used [due to static variable]). The
commit is actually a re-write of the patch, based on its core
idea.

Also some other minor cleanup was done.
prepare 7.2.2 release
queue: file delete stream does no longer do real io

This stream is primarily used for state tracking, and has been
modified to do just that. This results in considerable less io
being done and the respective speedup.
Merge branch 'master-newqueue'
cleanup
regression fix: rsyslog terminated when wild-card $includeFile did not find files

Unfortunately, this is often the case by default in many distros.
document fixed regression
improve $IncludeConfig error messages
testbench: bug fix & enhance $IncludeConfig tests

The bug fixes actually fixes a bug inside the *testbench* itself.
prepare for 7.2.3 release
imklog: added $klogKeepKernelTimestamp option

When enabled, the kernel [timestamp] remains at begin of
each message, even it is used for the message time too.
imklog: added $klogParseKernelTimestamp option

When enabled, kernel message [timestamp] is converted for message time.
Default is to use receive time as in 5.8.x and before, because the clock
used to create the timestamp is not supposed to be as accurate as the
monotonic clock (depends on hardware and kernel) resulting in differences
between kernel and system messages which occurred at same time.
bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds

... actually, they are microseconds. So the fractional part of the
timestamp was not properly formatted.
Thanks to Marius Tomaschwesky for the bug report and the patch idea.
Merge branch 'v5-stable' into v6-stable

Note: this was not a simple merge, I rather needed to adopt the v5 code to
the new v6 config handling. However, no v6 config format has been added yet
(this is the next step).

Conflicts:
	plugins/imklog/imklog.c
	plugins/imklog/imklog.h
imklog: add new config params to module() parameter set

This is based on Marius Tomaschewski's set of patches, mostly
just applied manually (as I need to mangle with the merge).
Merge branch 'v6-stable' into tmp
doc: mention imported patches in ChangeLog
Merge branch 'v7-stable'

Conflicts:
	configure.ac
	doc/manual.html
	plugins/imfile/imfile.c
	plugins/imklog/bsd.c
	plugins/imklog/imklog.c
	plugins/imklog/imklog.h