Add support for day-of-year (ordinal day) time formatting
Now that we have the ordinal day, we can easily get the week of the year. Expose that.
Refactor unix time_t code with a giant table lookup :)
convert getOrdinal to table lookup as well.
bugfix: unitialized buffer off-by-one error in hostname generation

The DNS cache used uninitialized memory, which could lead to
invalid hostname generation.
Thanks to Jarrod Sayers for alerting us and provinding analysis and
patch recommendations.
Merge branch 'v7-stable' into v8-stable
maintain ChangeLog
Merge branch 'v8-stable'

Conflicts:
	ChangeLog
bugfix: error: json_tokener_errors undeclared when overriding PKGCONFIG

If PKGCONFIG settings for json-c were overriden, presence of
json_tokener_errors was not properly detected.
closes https://github.com/rsyslog/rsyslog/issues/143
maintain ChangeLog
Merge branch 'v7-stable' into v8-stable
Merge branch 'v8-stable'
bugfix: RainerScript: invalid ruleset names were accepted

...during ruleset defintion, but could of course not be used when
e.g. calling a ruleset.
IMPORTANT: this may cause existing configurations to error out on start,
as they invalid names could also be used e.g. when assigning rulesets.
warn on invalid ruleset name

but keep accepting it. This is a forward-compatibility change
so that users will not run into surprises when they apply 8.5.1.
Merge branch 'v7-stable' into v8-stable
Merge branch 'v8-stable'

Conflicts:
	runtime/ruleset.c
Merge branch 'v8-stable-backgrounding' into v8-stable
Merge branch 'v8-stable'
Merge pull request #107 from arrjay/master

add support for day of year, week of year date formatting
maintain ChangeLog