Reversing the Resource Curse: Theory and Practice