Added handling of Resource Requests,

Also added MAX_CPU and MAX_MEM