It is always cool to get mad at something and it's always cool to have a heavy heart too. But, when you feel been played by someone you were willing to give up your life for, even if it came to that, it's always a different story.
In the case when, what he did to you could make you lose your job. Huh... What again could one expect when, the very thing in question here is also some one he really don't want to lose since, he is the only thing that is keeping him alive. All these times.
And when you try to know why, he tells you, if you really had a way to help he wouldn't have done what he did. Since from the start you said you were not going to keep that brain of his, in his business out of the way.
At the end you both did what you thought was best for you and you both played each other, so as they say, there is always a winner and a loser in every game.
You only have to accept the fact that you lost and he won and get on with the life ahead. And even after making you feel like a trash in the faces of your boss, he gave you the very thing you wanted. Just that he couldn't let you add the brains to his business just for you gain at work.
Live a life worthwhile and don't expect to get the fun all the time.