Everton seal Premier League survival after epic escape, Burnley out of bottom three