refactoring in JobServer and OpenNebula backend