CFY-643 added 'state' to the NodeInstance represesntation class; added a getter for it in ctx; modified 'node_state' to 'node_instance'