rebuild HTMLImports to handle duplicate load requests during inflight transaction
add test infrastructure and test
remove leaking global
fix typo