replace global MediaWiki variables with mw.config.get()

global config variables are deprecated since MW 1.17

idea from:
https://ru.wikipedia.org/w/index.php?diff=64787372
Merge pull request #3 from ricordisamoa/patch-2

replace global MediaWiki variables with mw.config.get()