How Jennifer Aniston’s pal Courteney Cox plotted her reunion with ex Brad Pitt and gave him her number