Yea okay, maybe she has always liked him to, but since you told her you liked him first she decided not to tell you anything, or maybe somewhere in the last three years she started to like him, but didn't say anything because again, she already know you like him -but she is your friend... your best friend at that.. so she should have known how much this would of hurt you and as a friend she should have given you a sort of heads up.. that is unless she prefers a crush over a friend.. Or she could've not hooked up with him. That would have been a cool friend to.
Honestly I would be angry and hurt. I would feel betrayed and I would want to rage like no other... but they are together now. I'm sorry that it's hurting you this much and I'm sorry a friend did this to you, but maybe now it is time to let these feelings for him go seeing just how much he doesn't care for you. Knowing how strongly you feel for him, but only wanting sex.. not letting you know he was into your friend so that you could back off.... he probably just liked the attention or like playing with you.
I don't know if I would be mad at your friend forever, because you and this dude weren't dating or having a relationship..unless you guys were sleeping with him in which case, yea she's messed up..but if you had no relationship with him than she didn't take anything from you really.
If she really did do it to prove she's better than you at everything than she just made herself look like the biggest bleh.. If she were better than you than she would not have done that because a better person wouldn't stoop to that level to make someone feel bad, their awesomeness would do it for them. If she were better than you she wouldn't be dating a guy she doesn't like, toying with his possible feelings for her. If she were better than you she wouldn't be talking you down to other mutual friends. If she were better than you she wouldn't lie. Personality makes a person.
Remember not all friends are true, but not all friends will be her. Sadly, you can only move on. Talk to her if you think it will make you feel better, but I wouldn't expect much from either of them. It might only make you feel worse. There is nothing you can do but let the pain ride. Hopefully you have other friends to turn to that will be there for you. This was just not right for a friend to do. As a friend, there was a better way to handle this. And if you are bitter, so what.. human emotion. It happens. It'll pass.