Moved tests up and out of scripts; all 3rd party libs loaded by script tags; added savequeuing (not yet testing it)