Add avocet resources to tests

Add the Avocet static html/css/js files to the qunit tests & fix a few issues causing test failures.