Stoke manager Mark Hughes has signed a new contract with the club which runs until the summer of 2018.