SkinTemplate: Minor clean up
* Better variable names ($wgContLang is object, $userLang was a string
and $lang the object. Made $userLang the object and $userLangCode
the string.
* Removed trailing whitespace.
* Spacing (not all just where it fit better in the context, some
isset($) to isset( $ ). and a few `if()` to `if ()` since most
in this file are like that.
* Some redundant magic quote usage to single quotes.
* Weird structure in getPersonalTools():
Instead of accessing the same deep array property over and over
again to add something to the newly create array (e.g.
$foo[] = array(); and then $foo[0] = $bar;) simply creating it
as a literal at once.
Change-Id: I861ae1d558f324f61c79089dcd3bff52dd27e0aa