Added Invalidate Bearer Token Function

* Added the invalidate bearer token function.
* Modified the search function so now it is passed the bearer_token as
its first parameter.