Stop using Atom deprecated APIs. Fixes #14 #13 #11