Thank you, that's easier to read 
So, does he know all about your past? Does he know why you do this? Why you are horrid to him?
I too come from a very abusive past, mental, physical and sexual. I'm 7 years clear of that now. My gorgeous DH and I have been together for six years and STILL I wait for the bubble to burst. He knows everything but I couldn't just tell him in one go, it leaks out. Not always when I expect it either.
It's hard. It's really hard to trust and move on and from what you've said, this wasn't all that long ago.
I tried counselling but found it too hard to open all the boxes I had spent years closing and burying at the back of my mind.
There's no quick fix for your insecurities but you must talk to him. You have to tell him how you feel and why. But most of all you have to tell him that it's not him.
It's an aweful situtation for him too if all he wants to do is love you and the children, look after you, help you to heal. He must get frustrated with it all because he knows he'll never hurt you, whereas you don't.
Only time will prove that to you. Maybe that's time you don't have but if he loves you and really wants this to work, then you have to tell him as much as you can face, and tell him that in time, it will come and you will let go of the past. One way or the other.
WRT your XP, why is he taking you to court?