Simplified load/reset-related code
device_id is changing after every change of internal secret
Fixed ApplySettings