Added Nexus.nextId for generating network-unique entity ids.