Adding the cleanup view test.
Delete events, and transactionaly update their error's event counts.
Add a customizable queue for cleaning tasks
Refetch events by key in case hrd query returns already deleted ones when the task is chained
Remove unused imports
Fix deferred call
Merge branch 'refs/heads/cleanup-cron'