Docker API Parity - Support for Cpu Shares,Devices and Restart Policy

@ibuildthecloud - I just copy pasted the files from his repo :)
Refactored the restart policy code as per the discussion with @cjellick  and @ibuildthecloud . Added a new function to change the case of the dictionary items.