Housekeeping tasks

To avoid storage problems and improve performance, periodically purge tables, queues, and file systems of such things as outdated event data and trace files.