MOBILE-489 Support for detecting browser language

Including also a fix on language availability check
Merge pull request #56 from moodlehq/MOBILE-489

MOBILE-489 Support for detecting browser language