Fixed so less spans are produced on older WebKits and also fixed some issues in the Schema class.
Major restructure of the qunit tests to better support continuous integration, code coverage, jshint etc.