Added LanguageFactory class to separate the language object creation

Added LanguageFactory class to separate the language object creation  code.
Added language constants in Language class.