Added two way communications between embedding frame and PencilCode frame using postMessage().
Added onDirty event to travck changes to code editor.
Significantly improved test and fixed bugs.