Use new archiving method and make plugin run with Piwik 2.x.

fixes #8, #9