auth middleware and usage of the tumblr api.