add web tests

Add tests to validate the usage library running in a dart:html context. Will need to follow this up with CLs to get the tests running on our CI bot, and to replace the uuid package, to minimize the compiled JS size of apps using this library.

Fix https://github.com/dart-lang/usage/issues/30.