Wow, I remember being blindsided, too.
Pick yourself up, dust yourself off, and start over. I did. I have grown as a person. I am so much better for having learned (the hard way), the same way you can.
Yes, I lost the house, yes, I lost some of the pets/livestock, yes, I lost myself for a bit. I went back to school, earned another degree, I have a decent job, I own my own home (all by myself - no coming home from work to find myself homeless ever again!!). I get to decorate my home my way (hehe!). It's been 9 years, but I feel so much better. Life is still hard, but it's mine - all mine.
Do get out from under any sort of debt he will try to dump on you (wish I had known that), get a good lawyer - not mine! Figure out what you've always wanted to do and DO IT.
Try not to feel sorry for yourself (it's hard not to), think of this as a fresh start. You get to start all over, clean (ish) slate and all. It's all about
you now. Congratulations! I wish you the best in your exciting new life.
And remember, the best revenge is living well - get even.
We're here for you.