Bug 973447 - [settings] refactor Language panel with AMD pattern

**This branch is used to test Travis. plz don't merge**