Add device::platform() method
Merge pull request #341 from kylelutz/device-platform

Add device::platform() method