Add signed browser sessions and bound client tokens
Add signed browser sessions and cryptographically bound per-tab client tokens. A client token alone cannot prove ownership of another session. Credentials are bound to the application's name, use HS256 with a pinned algorithm, and validate schema, lifetime, signing-key ID, and audience. Rotation preserves existing tab bindings.
REFLEX_SECRET_KEY supplies a comma-separated secret key ring; session signing keys are derived from it with HMAC. No key is stored on disk. Without it, reflex run generates a temporary key and sets it in the environment before the backend starts, so workers and reloads share one key; sessions reset on restart, with a large warning in prod and one line in dev. Config exposes a seven-day default TTL and half-TTL refresh interval; enforcement modes are off, warn (default in this pull request), and enforce, set with REFLEX_SESSION_TOKEN_MODE. #7364 changes the default to enforce.
Merged with current main. Review order: #7361 → #7362 → #7363 → #7364. The earlier #7360 dependency is merged.
Validation: 244 focused session, initialization, export, and locking tests passed. Audience-isolation and persistence regressions fail without their fixes. The full assembled stack passes 12,147 unit tests with 80.15% coverage; see #7364 for integration validation.
Session ownership is intentionally valid for an already established connection; expiry gates HTTP credentials and reconnects. This is not application login or per-session revocation. The review discussion records the rationale.
A configured REFLEX_SECRET_KEY shorter than 32 bytes now stops reflex run at startup. Before, the backend started and each session request returned a 500. A blank REFLEX_SECRET_KEY counts as not set: reflex run warns and generates a key, and keeps it in an internal environment variable that workers inherit, so an environment file with a blank value cannot replace it.
Related to ENG-12910, ENG-9088.