ICKY!!!!! I personally would consider ripping up the carpet and tossing it also if I could afford it. Since that's not an option here's what I would do:
Get rid of the kids for the day. Ask mom to watch them or a neighbor or whatever.
clean out all food sources.
Go buy a steam cleaner at Target(hey, with potty learning and kids spilling juice, you will probably get a lot of us out of it anyway).
Douse your carpet in some heavy-duty chemical-loaded commercial cleaner to kill the maggots and eggs in it.
Follow with a few rounds of the steam cleaner.
Wash all furniture and surfaces in the house.
Open all windows that have screens so that flies can't get in but the fumes from the cleaners can get out.
Wash all children's clothing and linens.
Best of luck. SOrry this happened to you.
(who does NOT advocate chemical, commercial cleaners but made an exception with this one!!!)