Nauru used to be the wealthiest country in the world per capita, but it relied exclusively on its natural resources, which eventually ran out. Now it is incredibly poor. There is a lesson for Qatar in this.