Remove deprecations

This removes all usages of deprecated APIs.
Couldn't this be required from `require 'atom'`?