SceneJS_State = function(cfg) {
    this.core = cfg.core || {};
    this.state = cfg.state || {};
    if (cfg.parent) {
        cfg.parent.addChild(this);
    }
    this.children = [];
    this.dirty = true;
    this._cleanFunc = cfg.cleanFunc;
}
Returns an object containing the attributes that were given when creating the node. Obviously, the map will have
the current values, plus any attributes that were later added through set/add methods on the node