support importing HTA TWs

Attempt at decoupling deserialize type from type.
change load.js to reference encoding set in boot.js.