Rewrite app to support multiple localizations and emit LPic resources.

Add additional tests.