Updated for 2.0

Updated the whole plugin to work with Piwik 2.0 branch