Added some functions

Language is now extracted from the sub-domain, and stored in the
resource object. Also added a function to return a list of supported
languages, with their names in the respective languages, using
Zend_Locale_Data.