add log component (close #43)
main: tiny refactory
swarm, peer: use log module instead of console.log (refs #43)
p2p manager: remove TODO (refs #2)
index: update source