Add all tests to browser runner

This adds all tests in api-test.js to browser.html. 
I used the browser.js script to generate the skeleton of the code, then manually copy/pasted the content of the tests (I assume it has to be done this way as the IIFEs make it imposible to introspect the original test source code). The only test that needed modifying was number 33 as that doesn't use common.createTest(). (All the new tests pass, the two of the old ones that failed are still failing.)