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

@ibuildthecloud - I just copy pasted the files from his repo :)
Just reuse act_restart_policy in each post function. Doesn't need to be uniquely name in each function. That will be cleaner.