Code cleanup.
Add support for Piwik.