feat(server): add single-user mode support
- Create config.js with loadConfig() for mode detection
- Create auth.js with middleware factory (single-user/multi-user)
- Update db.js with getProfileDir() for mode-aware path logic
- Update index.js to use auth middleware factory
- Skip multi-user migrations/backups in single-user mode
Single-user mode path: DATA_DIR/profiles/{profileId}/
Multi-user mode path: DATA_DIR/{userId}/profiles/{profileId}/
Environment variables:
- SINGLE_USER_MODE=true to enable
- SINGLE_USER_ID=<id> (default: 'default')
- SINGLE_USER_TOKEN=<token> for optional auth
docs(server): add ARCHITECTURE.md for portability abstractions