lib: Move nodeMap creation out
lib: Use DeviceCommunication in edge subscribe handling