Tough break, but it sounds like you went through a pretty positive experience and seem to work with people that care about you. I've been passed over on promotions and basically come into work to seeing someone working as my new boss without anyone telling me, and it sucked.