Move gdm-languages and some of the helper functions to common/, so that we can share it with the region panel.