feat(protocol): Add command PURGE and auto-purge of old tasks (refs #4575)(refs #4676)

Add PURGE_DAYS and PURGE_INTERVAL parameters to trigger the deletion of
tasks older than PURGE_DAYS every PURGE_INTERVAL engines launched.

Histo logs referencing non-existing tasks are also deleted when this purge is
triggered.