added on_head method to TokenResource
added api routes for TokenResource