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

@ibuildthecloud - I just copy pasted the files from his repo :)
Python has a builtin method on strings 'capitalize' that does just this