i get insomnia when i'm glutened too.
caffeine is so hard on your body, do you drink enough water? dehydration will make you more tired than caffeine can wake you up. dehydration will also give you brain fog and make you generally fatigued. i also agree with the power-nap of 20 minutes, it can go a long way.
whenever i get glutened, i immediately take charcoal - i take at least 5 capsules so that the charcoal will absorb the offending gluten. i don't get perfect results with this always, but it does make a big difference. the downside to charcoal is that it absorbs everything, nutrition, etc. in my book, that's okay as long as the gluten goes too. you can also do a drinkable form of clay, has no taste and will absorb anything in your gut. pick it up at health food store, or whole foods, good to have on hand.
Charcoal? Isn't that what they give you at the hospital to make you throw up? Sorry if I am totally wrong about that....I didn't know it also absorbs all the other stuff too. Will have to give it a try. Can you find it in healthfood stores?
Also, there was a time when I did yoga once a week, and I found that I was quite energized afterwards. I haven't been keeping up with the yoga (I really need to get started on that again) but I try to drink a lot of water, maybe some herbal tea or green tea. I try not to drink too much coffee...I'm on one cup a day as soon as I wake up (otherwise I absolutely cannot function for the rest of the day).