Andrew Murray, Labour's election chief