several modules: avoid overwriting the wgPageName variable

We shouldn't be fiddling with mw.config values.
After this change, use mw.config.get("wgPageName") for page name with underscores, and Morebits.pageNameNorm for page name with spaces.