Although I agree that Donna is likely correct about your son imitating your husband's behavior, I have this to add:
This could well be a chemical reaction to something in his environment. My younger sister was a "Jekyll and Hyde" kid; one minute she would be happily doing something, or eating, or playing, and the next she would basically tear your face off if she could.
I was enraged by my Mother's inability to control her (I was a young teen, my sister around 5-6), and thought my Mom was being unreasonable by not smacking her down. My sister would hit, bite, kick, scream, holler how much she hated us (especially my Mom), throw things...practically foam at the mouth.
Turned out, my sister was just very, very chemically sensitive. After a particularly bad experience involving painting the walls of our room, Mom connected the dots between chemical exposure and my sister's behavior.
My Mom and Dad had a long sit down discussion with me and my brothers while my sister slept off her chemical reaction (she slept for fifteen hours straight, btw). We got rid of everything that had an ingredient we couldn't pronounce or know what it was: food, cleaners, beauty products, shave creams, shampoos, soaps, EVERYTHING. Any fabric in the house that wasn't natural (cotton, wool, linen, etc), went. Any toys that were polyester, went. Sharpie markers, paint pens, metallic paints, went. Anything with a chemical scent or name got thrown away. It was a CRAZY change for everyone involved, and we figured that the throwing away of everything like that would send my sister into a fit.
We were shocked. She slept a LOT those first few weeks after we had thrown everything away. My brothers and I had to grapple with the fact that our sister had caused our lives to do a 180. My friends thought we were NUTS.
My Mother began to read food labels, and to buy directly from farmers and ask about what they used on their foods. She learned how to cook from scratch instead of rely on boxed meals. My Father had to buy new suits for work.
And here's what happened: My sister stopped acting out like that. Her entire personality and even the way she LOOKED changed. She used to have these dark circles under her eyes, and they suddenly went away. She didn't look like a sick little girl anymore, she looked healthy, and vibrant and full of life. And she became the sweetest little girl. She stopped hitting, kicking, biting, screaming. When she'd get angry, everyone in the house would hold their breath, waiting for her to "explode", but she just acted like a normal child (stomping her foot, crying, pouting). No more explosions. No more Jekyll/Hyde.
Then I remember a couple years later (she was maybe 8?) we were at a friends house and they had recently gotten new carpeting....Yup. My sister went BERSERK! When we got her out into the fresh air again, she calmed down after a while and fell asleep again...for twelve hours.
It hasn't happened since then, and my sister has gotten a little more tolerant of chemicals in her adult years.
So my thought is that this COULD be what's affecting your son. He could have had a reaction to what was in the dye (or even in something he had eaten or been around) and the fact that his egg didn't turn out sent him off.
It's just something to consider. Just remember that, no matter what he says when he's in a fit, he does still love you.