Use dom-events as our eventing system.
Start removing platform-specific code.