Client can now handle markup with multiple elements including script elements.
Made the 'on' API method synchronous by default, the async version is now 'onAsync'. Root task is no longer treated as special, instead it is serialized like the others and the html frame just prepends itself to the serialized tasks to be flushed.
Merged changes.
Recursively replacing scripts in tasks' markup such that embedded scripts are executed.
Added more detailed error message for timeout tasks.
Merged changes.
Fixed merging issues.
Fixed issue with duplicate assets in frame.
Make sure that close is not called multiple times.
Processing flushData after rendering frame in order to prevent duplicate assets from appearing on the frame.
Version 0.0.5
Merge pull request #6 from aljimenez/master

Root no longer special, markup can contain multiple elements, recursively executing embedded scripts