'Create a device object for the installed device.  Part of installation.'

@classmethod
def initialize_own_device(cls, **kwargs):

    kwargs['version'] = kwargs.get('version', VERSION)
    kwargs['name'] = kwargs.get('name', get_host_name())
    own_device = cls(**kwargs)
    own_device.set_key(crypto.get_own_key())
    own_device.sign(device=own_device)
    super(Device, own_device).save(imported=True, increment_counters=False)
    metadata = own_device.get_metadata()
    metadata.is_own_device = True
    metadata.is_trusted = settings.CENTRAL_SERVER
    metadata.save()
    return own_device
