Eliminate sleep in imjournal code with sd_journal_wait

	modified:   plugins/imjournal/imjournal.c
doc: add imjournal improvement to ChangeLog
bugfix: imjournal's thread shouldn't be canceled

Because of cancelation, the correct possition in the journal was
lost. This resulted in duplicate messages appearing in the logs.
bugfix: imjournal should respect termination request

sd_journal_wait() ignores EINTR and this behavior interferes with
module's termination signaling. Therefore, poll() is used instead.
add --enable-cached-man-pages ./configure option

permits to build rsyslog on a system where rst2man is not installed. In
that case, cached versions of the man pages are used (they were built
during "make dist", so they should be current for the version in
question.
doc bugfix: ReadMode wrong in imfile doc, two values were swapped

closes: http://bugzilla.adiscon.com/show_bug.cgi?id=450
Thanks to jokajak@gmail.com for mentioning this
bugfix: $template statement with multiple spaces lead to invalid tpl name

If multiple spaces were used in front of the template name, all but one
of them became actually part of the template name. So
$template   a,"..." would be name "  a", and as such "a" was not
available, e.g. in
*.* /var/log/file;a
This is a legacy config problem. As it was unreported for many years,
no backport of the fix to old versions will happen.
This is a long-standing bug that was only recently reported by forum
user mc-sim.
Reference: http://kb.monitorware.com/post23448.html