networkDiscovery+xifei: add test_device.js
add device.js in  nodewebkit/lib/api/
fix feedback by jimmie
Merge pull request #187 from xifeiwu/master

networkDiscovery+xifei: add test_device.js->jimmie