Newcastle boost their hopes of escaping relegation from the Premier League by coming back from 2-0 down to draw at Liverpool.