add memory and cpu shares support

@ibuildthecloud  @cjellick  added support to cattle for memory and CPUshares . 
dont this variable key. its misleading because it is an element in a list, not a key in a dict. Call it actual_device (assuming you change expected_devices to actual_devices)