Borussia Dortmund head coach Jurgen Klopp has been given a two-year extension to his contract that will keep him there until 2018.