Newcastle had referee Martin Atkinson - and a fair slice of luck - to thank after coming from behind to beat Stoke 5-1 at St James' Park.