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

* try to follow redirects before foreign repos are checked
* add profiling for wfFindFile function
Merge pull request #1212 from Wikia/bac-352-images-shared-repo-redirects

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