Upgrade to use version 3 API

Also, remove tokens (replace by authorizations).