Piwik class to talk to advanced API requesting data in JSON