JOHN HANCOCK FUNDS III AMENDED AND RESTATED Distribution Agreement