Added more regexes (and unit tests)

* Conversion of $j → $
* Inclusion of wgServer to avoid [bug 34036](https://bugzilla.wikimedia.org/34036)
Remove "undefined" parameter from closure and validate with JSLint
Add messages to #mw-content-text instead of using mw.util.jsMessage

Also:
* Increase the version number
* Add configuration to allow validation with JSHint
* Add spaces to match MediaWiki coding conventions
Use the second parameter of mw.util.wikiGetlink

This was introduced on
https://gerrit.wikimedia.org/r/#/c/84633/
Replace mw.util.wikiGetlink by mw.util.getUrl

See:
* https://bugzilla.wikimedia.org/show_bug.cgi?id=55764
* https://gerrit.wikimedia.org/r/#/c/94270/
Add rules to update wikiGetlink and hookEvent
Add rules to update mw.user.name and mw.user.anonymous

Since
https://gerrit.wikimedia.org/r/#/c/111422/
these are the replacements:
* mw.user.name → mw.user.getName
* mw.user.anonymous → mw.user.isAnon
Add rules to update tooltipAccessKey(Prefix|Regexp) and updateTooltipAccessKeys
Add a rule to update addHandler
Make the script compatible with CodeEditor
Improve regex for the conversion of arr.indexOf to $.inArray
Improve regex for the rule "preNowiki"

Sometimes <nowiki> is added intentionally to avoid ~~~~ and {{subst:...}} from
being parsed.
Fix a typo in the rule "preNowiki": "nowiki" should be "pre"
Add rules to replace mw.util.jsMessage and jsMsg by mw.notify
Add rules to update live, andSelf and some JSON-related functions

* live → $( document ).on
* $.toJSON → JSON.stringify
* $.parseJSON → JSON.parse
* $.evalJSON → JSON.parse
* $.secureEvalJSON → JSON.parse
* $.quoteString → JSON.stringify
* $.browser → $.client
* .andSelf → .addBack
Add rules for more deprecations from wikibits.js, etc

Also improve some regexes by allowing spaces before parenthesis
Disallow a dot before spinner-related functions
Require either "window." or something different from a dot before the functions
Require either "window." or something different from a dot before the globals
Require a parenthesis after the global gM, to avoid false positives