ResourceLoader: Honor $wgAllow* settings in site/user modules

Bug: 46858
Change-Id: I17b3a2c1df5d52458f92c715242003b34111432c
Merge "ResourceLoader: Honor $wgAllow* settings in site/user modules"