- reorg code: move some functions to Utility and Token classes
- generate a fake device id in test mode (so that test cases can authenticate)
(ID-251)
Utility class to contain general use functions (ID-256)