Zoo offers a lot of good advice and good observations here. I would only add that if you need to vent, do it here. I'm anticipating being in your shoes before too long , perhaps, and I think I will probably be going through some of the same. Although there was no affair involved, I still have a sense of betrayal.
Hang in there, and come here to vent, as often as you need.