SocialProfile: removed unused globals & further ResourceLoader fixes.

Swapped $wgScriptPath to $wgExtensionAssetsPath (and updated paths
accordingly).

Change-Id: Idf74888259aa4470ab3a4fb60e84f4c369cae640