Implements node id attribute

Refactor code to look for node ```id``` attribute rather than legacy ```key``` schema.