This sounds like a perfect submission for Conde Nast's Ombudsman section. They take situations like this and work to get a fair resolution. Check out
http://www.cntraveler.com/travel-tip...-for-ten-hours for an example.
I also have been through GYD many times on business (via BMI) and honestly, no surprise. They [Azeri airport officials and officers] are unfortunately not well trained in providing great customer service (albeit my experience with customer service in American airports are probably not much better!). I had a bad experience with BMI customer service once when one of their engines decided to take a break and our plane headed to LHR was forced to land back (luckily safely) back at GYD. They put everyone in a hotel after we [passengers] asked the BMI staff to do so and being given the run around. Was a crazy experience and I vowed to avoid BMI again whenever possibly. Luckily Lufthansa is a great alternative (from FRA). Being a Star Alliance Gold member, I try to "keep it in the family". I am glad BMI is no longer Star Alliance (although I do miss their #1 Business Lounge at LHR!)