Management of metadata in P2P networks