Update deprecated calls.

I haven't touched this for a while and the Atom API has been evolving. Update all of the calls that deprecation cop identifies.