Bug fixes for tests/PHPUnit/Plugins/PrivacyManagerTest.php

Bug fixes to get the tests of Plugins/PrivacyManagerTest.php to pass.
Bug fix for PHPUnit/Plugins/SitesManagerTest.php

testGetSitesGroups is the test. Error was due to difference in
the order of the result set returned.
Merging pg-my with piwik/piwik: All Plugins tests passing.

All the plugins tests are passing for both mysql and postgresql
with the merged codebase.