Teenage boys are tough. They think they know it all and they don't need their mom anymore but the fact that they still act that way tells you that just because they are almost full-sized now, they still have a lot more emotional maturing to do. And the fact that your ex doesn't have a healthy respect for women (it's not just you Honeybaby; any man who thinks it's okay to berate a woman in front of others, especially her own children, doesn't like or respect women -- IMHO), is definitely a bad influence on your son.
Unfortunately, you can't control others but you can control what you chose to tolerate. What I have had to do a number of times in the past with men who have acted bratty with me is, when they are just starting their tirade or have said something disrespectful to me, I look them straight in the eye and tell them in a calm, cool voice, "You are not allowed to talk to me like that. If you don't stop, this conversation is over." Most of the time, because these men are self-righteous windbags, they don't know enough to stop after the first warning, so at that point, I will tell them again, "You are not not allowed to talk that way to me," and I get up and walk off -- conversation over. I do not engage in any bickering with them, I do not lose my cool (not in front of them at least), and I do not try to explain to them why they were wrong to say what they said. Most of the time these men will usually apologize -- they may need a cooling off period before they come to their senses -- but by that time, they definitely get that you are a tough chick who will not be berated or walked over. Unfortunately, you will probably have to do this a lot with your son and your ex because that's just how they are and old habits die hard, but if you treat yourself with respect and demand that from others, then they are more likely to treat you with respect as well -- after a sufficient amount of apologizing of course.
I hope this help. Stand tall, be strong, and just know that it is up to you to set an example for your daughter and son what a strong, proud woman is all about. Best of luck.