Todd's updates to dom-element so parent-child relationship can be specified in JSON definition and bug fixes for vector2D.