adds getLanguages() for accessing the language map

Mostly geared toward extensions that need to
know the current state of the language map
before they provide further features.

@redmunds I blame you for this. :wink: