Add script references instead of inserting contents

This is a change designed to help speed up the running of the qunit tests.  Instead of putting all the code in the page we add script references and copy each file to a location relative to qunit html file that is created in a temp directory.