Retrieved the account from the keystore/keychain.

This is messy. Still needs a decent programmatic interface, but the
idea is to retrieve the account, use the refresh token if necessary,
then automatically log the user in.