Hygiene: Move logic for rendering WikiGrokPanel out of Panel itself

* We should avoid the code being entered at all if the user has opted out
of Wikidata games
* Also switch to using M.settings to avoid any dangers of localStorage usage
breaking things

Note: commit looks scary but is simply moving code out and into an
if statement

Change-Id: If66b4faf3a240a7943b1088c320c20d8be348f89