remove old-mdv-polyfill
whitespace changes
inject scripts into 'head' instead of 'body' for tidiness
fix inadvertant global; don't be async unless profiling
use shadow-dom shim by default
ensure window.logFlags exists
whitespace
Merge pull request #80 from sjmiles/master

various minor fixes