I looked at this topic twice before I decided to reply.
Is it possible to see the school counselor about this? It seems like you're trying to cope with some miserable circumstance- and like most of us, you weren't sure how to cope well, and developed some poor coping mechanisms.
I can't really tell you about the relationship stuff though, sorry