[ajax] Fixed a bug with non-null data
[ajax] + Query part “messages”

Get all messages in a given language.

Touched languages.js, will need some discussion.