Initial work for checking for device status before polling for work (still need to switch to actual promises instead of callback)
Changed the device availability check to look for a valid non-loopback IP address (the command itself will fail if the device isn't connected).
Switched the device check to correctly use promises, fixed the API key support and added support for specifying a friendly device name
Merge pull request #185 from WPO-Foundation/mobile

Add device health check before polling for work