feat: implement comprehensive caching to prevent 504 timeouts
- Add configurable cache TTL system with environment-aware defaults
- Implement dynamic TTL based on data type (profile: 60m, music: 10m, identity: 24h)
- Add HTTP Cache-Control headers for browser and CDN caching
- Cache identity resolution to reduce Slingshot API calls
- Add stale-while-revalidate for graceful cache updates
- Update environment configuration with optional cache TTL overrides
Fixes 504 Gateway Timeout errors by reducing AT Protocol API calls
and serving cached responses. All cache durations are configurable
via environment variables while maintaining DRY principles.