add memory and cpu shares support

@ibuildthecloud  @cjellick  added support to cattle for memory and CPUshares . 
As discussed in python-agent, dont call the variable y.