remove dependencies on `dart:html`

a step towards better testability; implementing the html.WindowBase
provides no benefit here

also remove the dependency on `dart:html` from `common.dart` by implementing `chrome.runtime.getPlatformInfo`