Core library for p2p overlay.