Fix indentation & formatting in p2p.js
net code fixes and fake timeout mode for net timeout testing