How to deal with cravings

I was doing so well on MFP, losing weight steadily without much exercise... then all of sudden this weekend, I got incredible cravings for junk food. I think part of the problem was that I let diet soda creep back into my diet. I was having one per day, and then a few more each day.

I know it was an inexplicable craving because I was completely full. I even let myself eat extra food, but I just wanted the high carb food with an intensity I can't explain.

So I haven't had diet soda in 2 days now, and I'm not feeling that urgency at all. I'm back to the status quo. I hope it was the soda and not that my body had fallen below some kind of set point that it didn't want to give up.

I found this article that explains a lot about the addictive nature of carbs, but it doesn't give any solutions. How do you free yourself? Do you just have to avoid it completely? I know I have an addiction because it was a craving not based on actual hunger.

http://authoritynutrition.com/10-similarities-between-junk-foods-and-drugs/