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

* try to follow redirects before foreign repos are checked
* add profiling for wfFindFile function
PLA-501 updated crosswikicore index service to always include description text
MOB-275: Use one size for small images
MOB-275: Use one size for small images (in ImageTwaeks as well...)
MOB-275: Ribbon is for NOT small images
MOB-275: Refactor Media handling to handle correctly small images
BAC-589: improve images popularity in ImageServing

Add a query that gets all images being redirect to an image we're getting popularity for
MOB-275: By clicking on bottom or top user was taken to image
VE-164: control large tables with overflow instead of popups.
VE-164: keep the old way around for articles that haven't been re-cached.
VE-164: better regex replaces that are safe for nested tables.
VE-164: add table overflow hint.
Merge branch 'dev' into VE-164

Conflicts:
	includes/wikia/Wikia.php
VE-164: fix overflow hint so that clicks can go through.
VE-164: minor cleanup.
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.