move CertificatesManager to platform
(cherry picked from commit 6dc50e6)
WEB-9566 Debugger: optionally ignore certificate errors
(cherry picked from commit af49f19)
IDEA-118587 IDEA may not exit with black window
(cherry picked from commit a622b21)