Add support for JSON files using messageDir

This makes it possible to migrate extensions depending on MwEmbedSupport to
use the JSON i18n file format.

Bug: 63257
Change-Id: I50989bd425e34f4b625397f879b73bf3929d012c