Move device commands to common lib
Merge pull request #600 from Icenium/fatme/share-device-commands

Move device commands to common lib