Cleanup windows.dart code.

- windows events now use Dart streams
- added unit tests for all windows methods
Uncomment lines I accidentally left commented out in the last commit.
Commit unsaved changes.