MOBILE-489 Support for detecting browser language

Including also a fix on language availability check