Translate variables

This set of changes adds support for variables when translating text inside Flash. For example, the phrase "In {sec} seconds" could later have the {sec} token replaced with a number of seconds. This support is made available through a new class StringUtil, and has also been integrated into Translate.map() and the DialogBox class for convenience.