factor out the Archive Purging code in own class
refs https://github.com/piwik/piwik/pull/319
refs #5396