Added hooks and array processing
Better logging
Fixed hinting and sorting
Merge branch 'mercury' into HG-144

Conflicts:
	includes/wikia/api/ApiHooks.class.php
getId
Added unit test
Formatting
Remove value from ad test
Added limit to key name
Use mockGlobalVariable for Memc
Added comment on ad tests; Moved to mockGlobalVar
Merge pull request #4764 from Wikia/HG-144

HG-144: Caching for top contributors