Demand Forecast, Resource Allocation and Pricing for Multimedia Delivery from the Cloud