Indonesia's president has vowed a fairer distribution of the nation's wealth and a renewed commitment to protecting diversity after tense months in which the country's reputation for tolerance was undermined by religious tensions and attacks on minorities.