How Ed Miliband helped write Brown’s anti-David speech