Wales head coach Warren Gatland has signed a new contract until after the 2019 World Cup, the Welsh Rugby Union has announced.