Added code and tests for handling incoming Nodes messages.