fixed availability calculation for hosts without services
Merge branch 'master' into integration
added mysql logcache support