Fix Deprecations

Fix a few deprecation warnings, set the stage for a switch to [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) / [addViewProvider](https://atom.io/docs/api/v0.152.0/ViewRegistry#instance-addViewProvider).