Mining is still a good business in Africa. But over the decades, it is outsiders who have benefited from the continent’s resources. Now governments have pledged to change this.