Store token in the wp database

We now store the token in the site’s setting and refresh it only when a
call to our API fails with an auth exception. Realistically we will
only refresh tokens about once a day now.