code: function getOrCreatePeer(id)
      {
          if(scope.peers[id])
          {
              return scope.peers[id];
          }
          return createPeerInstance(id);
      }
docs: gets ConnectaPeer instance by id, if not exists, creates new and returns