No longer aborts when started from cron (no tty)
Fixed search in rule for only protocol.

Protocol was ignored, if no IP address was given.
A test case has been added.
v0.928

 - Fixed a bug in new cleanup script for history older than 1 year.
   The script failed when started from crontab (without a terminal).
   This failure also broke the general cleanup script, such that
   - daily policy files were not deleted and
   - mail about policy diffs were not sent.
 - Fixed a bug in end-to-end search.
   If only a protocol and no IP address was given,
   not only the rules with matching protocol, but all rules were shown.