My guess is that it wasnt a revenge. There was a once-in-a-lifetime opportunity to capture the Kyuubi without much hasle so Obito took it. Why attack the Leaf then ? Well, I think he wanted to reignite the flames of war bcs if the Hidden Leaf was destroyed and without its Bijuu then the power...