Use uuid in devices & tidy up
Remove logging.
Merge pull request #463 from MastodonC/feature/uuid-for-devices

Use uuid in devices & tidy up