Middleware for effective cloud managing