First of all, reading your personal emails and sending them to others is definitely illegal (recently was in the media) - that is where YOU got some power, at least if you can prove it. (From the looks, it seems so)
Second, changing the locks and basically throwing you out is another point which is clearly illegal and where you got some power too.
Everything else, not so much.
You've been working illegally, this will not leave a good mark if he decides to go public about it (which I guess he will if you start the legal way)
His "bad habits" like playing video games will have exactly no influence. Unless he beat you (physically), which apparently didn't happen.
Hiding criminal records will probably also not play much onto your side. Will possibly get you some sympathy, but that's about it. And I doubt he had to - by law - to fully disclose his finances to you. That's what separate accounts are for. Something you should have opted for at the time. Hindsight, I know, but you didn't seemed very close to him before the marriage?
So apparently, quite apparently, you're not a match for each other. I'd definitely go for a divorce at this point (and this can be fairly fast if both agree) - if you can't provide your own funding after he kicked you out, you'll be able to claim social benefits till the divorce is through. The state won't let you sleep on the street.. But I'd expect your permit to be gone the day the divorce is through, since you pretty clearly can't provide for yourself in a legal matter (if you get those 2 years time, I'd work on that with highest priority, since this WILL be a game changer if you can provide for yourself - it won't guarantee anything, but at least opens a realistic option. I know of someone in a similar situation who had no trouble on holding on to her permit, but she was the main bread earner anyway in that family, with him basically being the one on social benefits after the divorce..)
So, in short: Fix your "black work" situation, since he'll definitely play that card. Get a lawyer (as others suggested), and if you want to stay in Switzerland, try to find a legal job. But also and already prepare yourself to have your permit revoked just in case.