Alternative way of setting resource paths

To cater for the need to have a title at that point which is not the case
for $wgExtensionFunctions.
So far, only testing it on mediawiki.org

Change-Id: I73892176285f09b56f6f79266b24eeb3d13b7fe4
Merge "Alternative way of setting resource paths"