REST, search form

REST api for the search, search logic, search form impl.