Honestly, I'd have to disagree. I find Tobirama's actions towards the Uchiha a bit extreme. Madara had tried to get the Uchiha to betray the Senju and attack them, but every single member of his clan refused. There wasn't a single person willing to follow his will, which should have at least resulted in the Senju trusting the Uchiha a bit better. They had just refused the will of their leader, a testament of the fact that they truly wanted peace, while the believed the Senju would have the dignity to hold up their part of the treaty that they suggested in the first place.
However, instead of doing as Hashirama suggested,*Tobirama decided to keep on no trusting them, and like we know, isolated them in a corner of the village, giving them the role of police officers. He himself stated that he did this to prevent another Madara from appearing, but that logic is honestly just flawed. Following that logic, the mayor of NY could isolate every German in the city, simply because of the chance that another Hitler might appear. A wise solution would for example have been to secretly have a few of his personal servants, the ANBU, follow the ones that might have seemed likely to follow in Madara's footsteps. Making them police officers may have been a good idea, sure, but just like Orochimaru stated, the officers of the law tend to be disliked by the public.
So, instead of simply pushing the clan, that he himself stated that was really sensitive and prone to anger and revenge, into a single corner of the village, in order to keep watch on every single member because of something that might happen, he could have simply done his duty as a Hokage, and treated them like actual people. After all, the Hokage's role is to protect all members in his village, but Tobirama's actions towards the Uchiha showed that he was simply biased toward the clan due to their issues in the past, and simply did as he pleased, using his power as Hokage to get a revenge of the people that he had argued with, completely ignoring the treaty and the purpose of the Hokage, which is to love and protect all the village members, not just the ones he likes. Honestly, his actions were more based on racism and paranoia rather than logic.
And the purpose of Edo Tensei hasn't been confirmed yet, so it can't really be included. Your solution seems quite likely, I'll give you that, but since the purpose hasn't been confirmed, we don't know why he invented it. For all we know he could have been resurrecting some dead whores of the village in order to blow off some steam with them. Not saying it's likely, I'm just saying that we shouldn't assume anything yet.