Bug 1024887 - Move language related code to a separate module

https://bugzilla.mozilla.org/show_bug.cgi?id=1024887
We could require `utils` but I'm afraid we are not able to write `Utils.getSupportedLanguages`.