PariPari: Design and Implementation of a Resilient Multi-Purpose Peer-to-Peer Network