Updated Search tools to use new REST api
This is preliminary commit, there are many changes need to be done.