Sounds like you've been working for a real as*hole (or as my governor would put it, "a major league as*hole"). I hope you can feel like you're better off without him, and that bad situation.I also hope you seek good legal advice, no matter what. Even if you have doubts about your own culpability in this issue, the way you respond to his bullyng will make all the difference to the way he will treat you in a termintaion agreement.
I would suggest consulting a lawyer even he doesn;t fire you. I am not encouraging a law suit here, just suggesting you might be better prepared to cope with this bad situation if you had a clearer understanding of what the legal issues are.