make use of $wgMFResourceBoilerplate (refactor)

cleanup our code \o/

Change-Id: If560cb79251660c023a5c107dbefe7c241e9a19e
Merge "make use of $wgMFResourceBoilerplate (refactor)"