Web: Use isEsProfile() instead of run-time testing; remove more atomics

Saves 2.5K, and design is better.
17 files changed