Share device and device-log stream commands

`List-devices` was duplicated in tns-cli and icenium-cli. We need to expose `device log` command in tns-cli.  I moved the device releated commands to common lib instead of duplicate more code.