Improvements to i18n support
major feature is the ability to make get_lang() return only the languages supported by the application instead of returning all the languages requested by the user.