Remove use of deprecated APIs

Note that though the tests pass, this relies on [an unreleased change](https://github.com/atom/atom/commit/6a832468388bbea784e481d64ec8fda311494981) to atom core for correct drag/drop behavior. This shouldn't be merged until that change is released.