Added search endpoint.

This adds a way to do server-side a) pagination and b) searching.

@andykram @florianleibert @guenter