add valueOf
add WindowsPhone support
add Device.query function