Import more tests from W3C and WebKit.

Also adds a few fixes to pass these tests.