added some tests, removed constant PIWIK_TRACKER_ENABLED instead
config record_statistics should be used, fixed some bugs