Thierno Barry came off the bench to fire Everton to Premier League victory at Newcastle for the second successive season in a dramatic conclusion to a madcap encounter.