[ews] Refactoring and logging improvements.
Pull request: https://github.com/WebKit/WebKit/pull/3586
Committed 253698@main (2ca89e6c9999): <https://commits.webkit.org/253698@main> Reviewed commits have been landed. Closing PR #3586 and removing active labels.
<rdar://problem/99050418>