feat(mobile): add device ID and _sync metadata to mobile backend
Generate raw UUID device IDs (no prefix) on mobile, stored in settings
table. Inject _sync metadata (createdBy/createdAt/modifiedBy/modifiedAt)
on all save and update commands. Sync pull preserves server metadata
as-is via separate codepath. Also update desktop device.ts to generate
raw UUIDs and add shared SyncMetadata type.