Trigger 'RestInPeace' hook in wikia.php as well

Improve #2728
And api.php
doMaintenance.php: trigger "RestInPeace" hook
Merge pull request #2735 from Wikia/bac-1285-purge-unique-urls-wikia-php

Trigger 'RestInPeace' hook in api.php and wikia.php as well