Adds support for writing bundles.
Changes the readMessage API so that "args" is always an array.