Ok, now I am totally pissed off and it now feels like my crush on him is going to fade, and probably my friendship with him as well.

We were at a bar recently in the city with some friends and he was texting with his crush constantly back and forth until his phone died. He wished he would spend more time with her in person, and being the unfortunate selfish (I was tipsy) guy that I can be sometimes, I kept telling him to stop texting her and enjoy himself at the bar with our friends. He's not a confrontational guy in general, he's generally calm so he didn't tell me to stop bitching or anything. I was hoping again that he was getting my hints of liking him, but he seems oblivious to it (either that or he's just ignoring it and won't say anything).
A few drinks later, I eventually told him that part of me was against him going out with this girl. He asked why and I told him I have my own reasons (I wish I could tell him I have a crush on him). I then said one of the main reasons was my fear of getting ditched all the time and he told me that that's just natural and he wouldn't forget about me and still hang out with me. He also said it's fortunate that at least his crush is a girl I am friends with as opposed to one I don't know at all. He then confessed he felt it would make things a bit weird among our circle of friends and isn't sure if it will work out, but he wants to try it. I apologized for getting bitchy about the whole thing and asked him how he could stay calm about this. He replies- "it is just the way I am, should I be mad? Its just your opinion." (I'm realizing now I should never have said anything about being against them going out). So then I thought something like this would make our friendship grow stronger, but apparently not--
I was at his house last night on his computer and happened to have found his AIM chat history files. So while he wasn't looking (other friends were at the house, too so he was distracted by them) I glanced through his chats with his crush, and I feel betrayed (I should've copied/pasted the logs and e-mailed them to myself, but I couldn't stand looking at them). He mentioned to her about the times I bitched to him about texting her, seeing the two of them together, and how I complain about a bunch of things in general among other things. I saw in one convo that he told her he was bored without her when the rest of us were hanging out somewhere. She even noticed that I have given her dirty looks whenever she's with my crush and she hates it that I complain all the time and mentioned she'd punch me in the face if she could, but I didn't see any mention of them thinking I was gay/bi, just a comment she made about me trying to protect him from her. It seems like he's choosing her over me for obvious reasons, but there's nothing I feel I can do/say about reading the logs because he will most likely tell her (and who knows who else), not to mention probably get pissed. Apparently all of my circle of friends have noticed I've been bitching lately and no one said anything about it, they're just talking about it behind my back

. I ended up apologizing to everyone online last night for how I've been acting this summer and everyone accepted, but I'm sure deep down they were wondering why I would just randomly apologize.
So in a nutshell, the logs were like a wake-up call to me, and I felt hurt reading them. After I read them, I had little desire to talk to him at his house for the rest of the night and I was spending less time around him than I usually have recently. I'm going to have to distance myself from my crush for a bit because he's not the trusting friend I thought he was, but idk if I want to end the friendship, he's been nothing but nice to me to my face. He didn't tell her he hates me, just that I complain too much. I even told him a few times if he ever has a problem with anything I do to just tell it to my face, but he never does, instead the asshole talks behind my back about it. I really really want to confront him about the logs, I'm not sure what to do. I wish I never started to have a crush on him, it brought nothing but tension between me and my friends.
And as far as coming out to him goes, I think that can wait for now, lol.