use nameToNode in Mininet class __iter__ and __len__

This is more consistent with __getitem__ and __contains__, and allows
registering nodes that don't fit into the existing categories.