adding skeleton for server-side search

Adding the structure that can handle search requests on the server. No
search implementation yet.