moved peer specific code to lib/peer.js
initial import