Use gem 'elasticsearch' instead of 'tire'.

Refactor Elasticsearch Adapter.
Abstract Collection and Document Model.