Added new REST API, fixed much of the search page