Use consistent idioms, remove unused code.
When not on a zone, show the local device only.
Check local device's zone (to avoid issues when Zones exist but DeviceZone does not).
Merge pull request #146 from bcipolli/IDOC-robust

Make control panel more robust for imperfect Device/DeviceZone/Zone setup