Feature/search and filtering

Changes to the entities index API, which is now backed by elasticsearch.