Oh I know the feeling... =[
I have a history of B.E.D as well, and then obsessing over weight loss.
I grew up binge eating, because my entire family did it.
And then I lost like 10 pounds 1.5 years ago after going on Prozac for anxiety (prozac made me lose my appetite because it made me suicidal)
After I lost the 10 pounds, it broke some kind of barrier where I realized that I had 'a weight', ya know? I felt like for the first time in my life, and pow, I became obsessed. I limited my calorie intake to 300-700 calories a day and carried this through for 4 months, lost another 10-20 pounds (I was an overweight kid) and became my ideal weight. And then I ate one cookie, big mistake, I ended up eating the entire batch and B.E.D was born! But in a very much worse, obsessive form than my childhood!
I binged there on out almost every day because the junk food felt so new to me after starving myself. Gained the 20 pounds back, and am still obsessed with losing it. But, I don't binge eat anymore (binge eating to me is stuffing your face with everything until you feel physically ill, almost as a means of self harm). I just over eat.... I over eat a lot, and emotionally eat. I haven't binged in about a month now

it's like a recovering alcoholic.
Unfortunately I still obsess about my weight and I still try and lose it, whenever I try and lose it (aka restrict myself) I rebel against myself and go back to binge eating.
Try to take it one step at a time... I see the only way of overcoming B.E.D is to not focus on weight loss. Hard right? Yikes I know.. but the only way out is to tear down the restrictions that your B.E.D is rebelling against. If you tell yourself "If you really want that cookie you can have it" you might actually end up thinking "Actually... I don't even really want it.".