Changed all Ids from int to String.
Added support for serialization to JSON and sending GameApi messages via
postMessage in JavaScript.