Bug 876238 -  Convert DeviceAcceleration and DeviceRotationRate to WebIDL bindings. r=smaug