As a fellow control freak (of myself, rarely others) I can tell you that having a baby, nay, a child, is one of the biggest tests imaginable. You can or control anything when it comes to children. Nor can you control other people's reactions or attitudes to your child.
You can either choose to move on from this or choose to let it impact your pregnancy and relationship going forwards.
Could you sit down with your DH and explain that you feel disappointed that he told a friend and ask him why he did it? It maybe that his friend asked whether you were pregnant, and he just said yes. I remember a colleague asking me when I was 6 weeks and although we'd agreed not to say anything, I couldn't lie (was afraid of jinxing myself) and for that reason, I ended up saying I was pregnant before i had intended to.
Also - blokes aren't as OMG about news like this. What feels monumental to you won't be to a not very close friend - in fact, he probably said congrats and they moved on to another topic - so try not to feel like your thunder has been stolen. It hasn't - for all intents and purposes, you've still got the main friends and family to tell. Maybe your DH wanted to tell someone the news that he knew wouldn't shout it from the rooftops. Dads do have a say too, and it's often because they are feeling anxious as well about pregnancy and their role within it.
Basically - try not to give him a hard time. I understand you feel betrayed as you trusted him not to say anything, but as others have said, pick your battles (they'll get a lot harder) and sit down with him to find out what actually happened. Reiterate how you feel and your feelings towards names etc and start a fresh.