Make purge task run options configurable. Also adds ability to disable
the task entirely.