Move getLanguageNameByCode out of wikibase.js

Change-Id: I00ce9e98bb10e66c2654afa70fcd593b6c9f13d8
Merge "Move getLanguageNameByCode out of wikibase.js"