export lua function "cc.Device::getDPI()"

export lua function cc.Device:getDPI()

For those developers who need to get the current device DPI in Lua environment. and also `setAccelerometerInterval()` and `setAccelerometerEnabled()` functions in the CCDevice.cpp class.