If you feel that the problem is that he is spoiled then you need to stop spoiling him. It will be tough in the beginning, but don't respond to the emotional outbursts. I read a suggestion recently from a mom that said when her son has outbursts. She looks at him and says in as calm a voice as possible that she can't understand him when he speaks like that and that when he has calmed down she will be waiting to talk to him. She then put him in front of a mirror so he could see what he looked like and left him to blow off some steam.
Whatever you do, you must be consistent and your husband needs to agree to respond the same way. Once he realizes that the outbursts don't accomplish anything, he will stop. As long as you respond, expect it to continue. Also, make sure to compliment and thank him when he acts appropriately - if he is acting badly for attention, you want to make sure to give him just as much attention for behaving well as you do for behaving badly.
Good luck!