My take on your situation is how incredibly NORMAL it is. Not that its pleasant to go through, but boy-meets-girl/boy-loses-girl scenarios happen every day to millions of people. Its NORMAL. And when it happens its NORMAL to hurt. And when you hurt its NORMAL (and healthy) to express your feelings to friends who care and support you.
The truth is, life comes around and kicks everybody's asses from time to time. I think you are doing just fine. Give yourself some credit.
"But now old friends are acting strange,
they shake their heads, they say I've changed.
Something's lost but something's gained in living every day
....it's life's illusions I recall, I really don't know life at all. "Joni Mitchell