PeerSpaces: Data-driven coordination in peer-to-peer networks