Move filter constants to itl/constants.conf.
Implement validator for timeperiods.

Fixes #3845
Merge remote-tracking branch 'icinga2/master'