Tanzania races to repair strained ties with Washington as post-election turmoil puts billions in US investments at risk.