Wales Head Coach Warren Gatland is to remain in post for an extra four years until after the conclusion of the 2019 Rugby World Cup.