Move shared Windows Event Logging logic into a shared location

After I finish the ETW event logging impl, the host will log to
the Windows event log from two locations (one for general host
status changes and the other for logging events).  The code used
to register/deregister/trace is the same so I've refactored it
into a common class that can be used by both loggers.

Change-Id: Id61afc67ab528a59d63d98d1c4e82a14fdc3b6bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2544075
Commit-Queue: Joe Downing <[email protected]>
Reviewed-by: Jamie Walch <[email protected]>
Cr-Commit-Position: refs/heads/master@{#828321}
4 files changed