It's hard and it hurts like hell but in my view you have absolutely done the right thing. This is about you, your sanity and your self respect.
He hit the roof because you have taken control of you. He's a bully. Why aren't you doing the pick me dance anymore. Let him go off and be in a rage. Poor thing. At least you won't have to put up with it if he's moved out. When he grows up a bit, he may realise that actions have consequences.
He needs to go and contemplate his navel for a bit. He wants to talk about the R whilst he is having sex with someone else. Do these people have no shame? My idiot actually told me what the preferred sexual position of his OW was and how he was pleased that he was able to do that for her.
If he goes then you can truly focus on yourself without having to wonder what is going to upset him now. It's liberating, I promise. You don't need to worry about what to do or say. It will be strictly business about the kids and nothing more.
It's counter intuitive but you need to show him your strength, show him that you'll be fine without him. If he would like a strong woman in his life who is drama free and got it together, he knows where you are.