Added automatic language detection.
Added automatic language detection.

Check whether there is a language saved from previous session.
If not, try to detect language and match it with available options.
If not, use the first available language.

Sheak90/amam,lsubel/amam,Sheak90/amam,lsubel/amam