Wayne Rooney becomes Manchester United's all-time leading goalscorer with a sensational stoppage-time free-kick that rescues a point at Stoke.