Starting to work out the details of the api token auth decorator.