Logging: Remove log notices after 7 days. Fixes [bug 6950 (#6950)].
Adds a background process that runns once every hour that removes
stale entries from the server event log.
The current configuration is to keep notices for 7 days, and all
other entries for as long as the server stays up.