Add Language and UiLanguage classes.

Fixes #2, Fixes #3