you really fucked up. there is probably no good end to the situation now, you cant be friends with him again, not the same, you telling everyone he was gay before he even said as much to you let alone the entire school isnt something that will blow over in a day. my advice is this. you are fourteen, move on, apologize, thats really all that can be done on your end.