BAC-352: Redirects in shared repository don't work

* try to follow redirects before foreign repos are checked
* add profiling for wfFindFile function
BAC-589: improve images popularity in ImageServing

Add a query that gets all images being redirect to an image we're getting popularity for
ADEN-365 Use DFP+ legacy URL for GamePro
Created URL encoded new username preview.
URL encoded username is now displayed in span element next to the input field.
Use AssetsManager class for JS inclusion.
Replaced $wgOut->addScriptFile() with AssetsManager's class method.
Added missing semicolon.
JS variables grouping and globals clean-up.
Grouped JS variables and removed unused global $wgScriptPath.
Fixed hardcoded message.
Defined output model for userrenametool-encoded.
The output model for userrenametool-encoded message is now escaped();
Added QQQ documentation for new message.
Used up-to-date version of i18n file.
BAC-698: use data for language variants from core

Change the language tab on all Chinese wikis to only simplified and traditional
Title: PHP hinting
BAC-698: Change the language tab on all Chinese wikis to only simplified and traditional
Removed unnecessary loop and changed AssetsManager method.
Merge pull request #1341 from Wikia/CE-344

Created URL encoded new username preview.
Merge pull request #1340 from Wikia/aden-365-idg-dart-upgrade

ADEN-365 Use DFP+ legacy URL for GamePro
WamApiDocumentation
WamApiDocumentation styule changes
Merge pull request #1358 from Wikia/WamApiDocumentation

WamApiDocumentation