Put event emitter in the same file as mesh
changing things so that mesh sets up a peer to join a mesh, rather than building the peer