Joey Barton has agreed in principle to a new deal at Newcastle United