Add ASSERT to catch any x-thread AtomicString comparisons.
Fix the BackgroundParser to use a safe version of HTMLTokenizer::updateStateFor, as well as add some hackish foreign-content mode support.