Added attachScripts, removed getFirstScriptElement by folding it into more usefull loadScriptViaTag method.
Removed old parameter related code from legacy mode that was not needed any more.
Added code to remove most of PerfShim memory usage as well as remove the perfshim function from the window.