Elasticsearch repository + small improvements and fixes

- Introduce Elasticsearch repository that wraps an existing repository
- Update Elasticsearch 0.90.13 to 1.1.1 and use the aggregation API
- Increase select2 max dropdown size to 1000
- Fix #1496 ElasticSearchService index repositories incorrect for xrefs