Support for languages which must be installed separately

1. Added ability to install language packs before locale is set (important for cyrillic).
2. Explicitly sets env variable to after locale is updated: otherwise locale changes has no effect until relogin, so postgresql for example sets wrong locale for default dbs.