I'm not sure whether this is relevant but I was like this at this age,maybe a year or 2 younger...? (throwing up or feeling sick when I got to school) and my problem was BREAKFAST. I wasn't having it as a proper meal, sometimes just a juice or even nothing, and when I was 'weaned on' to breakfast a lot of my problems cleared up.
May not be the issue but thought i'd mention it