Respond to ajax queries
Remove previous version of api
Add search interface