refactor such that only base.js is necessary for native HTMLImports.
update test, spec does not support data uri's
fire error event on xhr error.
minor test cleanup
remove outdated legal files.