Zaslat SMS: Resource windfalls, optimal public investment and redistribution