FromDespair(tofreeedom)
You should go to Relate, and discuss yesterday in front of an objective observer. Do not tell him you were scared about x,y or z, whilst this would be cathartic for you and he deserves to know what he has done to you his type of manipulative personality will use your fear against you.
You need to try to get him to agree to a game plan, that he will move out, that you will change the locks but that you will continue to go to Relate with him.
In a few days you need to consider where you want your marriage to go (on as before, on but with counselling and changes, don't know but can't have him in the house right now or permanent separation)I know what I think but this is YOUR life and you have to make decisions for yourself. It is not for us to control you, merely offer advice and experience, and it certainly is not for H to control you which he has been.
I would continue with Relate, they can provide a safe environment for discussions and support for both parties if either one of you decides the marriage is over.
You also need to continue with your application for the non-occupation and emergency residency order. His actions may have become less immediately threatening to you and the boys, but they still continue to be controlling and manipulative and if you have the court orders then the police have to enforce them if necessary.
My first husband was violent, when sober he was always contrite but I knew until he stopped drinking his verbal and physical violence would not stop. In your case your H has deep seated insecurities and issues that need resolving before he can form an equal partnership with a woman. He needs to accept this and work through that help for himself, if you are prepared to wait (with him living elsewhere) and rebuild your marriage; or if you decide the marriage is over has to be your choice.
PeterAndre's comments last night were accurate and heartfelt, you need to recognise that he is playing games with you (I too suspect he went out last night just partly to test if you would let him back in having just learned that neither of you can exclude the other from the house without a court order. You and the boys need the back up of the court orders even if you think you won't need to enforce them.