You exhibit pretty common insecure tendancies. You want to have some level of control over him all the time, which is why you're upset when he goes out with his friend. The crying yourself to sleep is a habit that you've gotten yourself into by thinking that you can't live without him and he is the center of your world, this is also a bad thing.
Usually insecurity is based around your own self confidence, and not the other person. Do you suffer from self esteem issues? Do you believe that you will never do better than him? If the answer is yes to either of those questions than you need to start working on yourself, build yourself up, get your own friends, a new hobby, and get out of the house.
if you continue down this path you will lose your boyfriend.
"All is fair in love and war." - Francis Edward Smedley