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: Ibac6da6903681b088a31c9e3e414e13b504d6c33
Merge "Alternative way of setting resource paths"