[DOC] Fixed the incorrect example of percolation while indexing document
[SETUP] Fixed the `rake web:update` Rake task
Added `Tire::Results::Collection#each_with_hit`

Previously, there was no convenient way to access the data returned by Elasticsearch
such as `_score` when the `:load` option was used.

This commit implements the `each_with_hit` method for results collection:

    results = Article.search 'One', :load => true

    results.each_with_hit do |result, hit|
      puts "#{result.title} (score: #{hit['_score']})"
    end

    => One (score: 0.300123)

The model instance is returned in the `result` variable,
the raw Hash from Elasticsearch in the `hit` variable.

Closes #562, closes #406.
[#562] Cleaned up the unit test suite for `each_with_hit`
[#562] Cleaned up and added integration tests for `Results::Collection#each_with_hit`
[#562] Cleaned up the documentation for `each_with_hit` in README
[#562] Refactored the `Results::Collection#each_with_hit` method

Previously, the method has been calling the `__hit` helper method
on each iteration pass.

With this patch, the `Array#zip` method is used to iterate over
the `results` and `@response['hits']['hits']` Arrays in tandem,
removing the need for the helper method.

Added simple method documentation as well.
Added support for passing partial document to `Index#update`

    Tire.index('articles-with-tags') do
      update( 'article', '1', :doc => { :title => 'One UPDATED' } )
    end

See <http://www.elasticsearch.org/guide/reference/api/update.html>

Requires Elasticsearch version [0.20](http://www.elasticsearch.org/download/2012/12/07/0.20.0.html) or higher.

Fixes #366.
Added `nested` query support

* Added the `nested` implementation for API/DSL
* Added unit and integration tests

Closes #475
Added examples of `nested` query support into `tire-dsl.rb`
[#475] Cleaned up and simplified the tests for `nested` query

* Fix whitespace errors
* Proper mapping in the `NestedQueryTest`
* Simpler queries in tests
* Better names for test cases, reorganize
* Remove redundant tests
[#475] Refactored the documentation for `nested` query in `tire-dsl.rb`
Release 0.5.3
[FIX] Escape single quotes in `to_curl` serialization

When your search query contains a single quote:

    s = Tire.search 'articles' do
      query do
        string "l'amour"
      end
    end

the `to_curl` command produces an invalid JSON payload:

    curl -X GET 'http://localhost:9200/articles/_search?pretty' -d '{
      "query":{
        "query_string":{
          "query":"l'amour"
        }
      }}'

With this patch, the single quote in the query is replaced with a Unicode escape sequence:

curl -X GET 'http://localhost:9200/articles/_search?pretty' -d '{
  "query":{
    "query_string":{
      "query":"l\u0027amour"
    }
  }}'

Closes #561
Added more examples for the `date_histogram` facet in the integration tests
[FIX] Fix broken unit tests for facets

Fixes karmi/tire@5a28781
Added JRuby compatibility

* Added skipping MRI/YARV gems on JRuby in .gemspec
* Added JRuby specific gems into Gemfile
* Added skipping Curb tests on JRuby
* Added `jruby-19mode` into Travis-CI matrix

Closes #555
Minor cleanup of JRuby compatibility

* Formatting, whitespace errors
* Gem dependency configurations
Updated Travis-CI configuration

* Changed starting Elasticsearch to the `services` support
* Added Redis and MongoDB services for integration tests
Added proper `as_json` support for `Results::Collection` and `Results::Item` classes

Previously, the `Collection` and `Item` classes were missing proper `as_json`
serialization support. With this patch, their `as_json` methods are now
ActiveSupport compatible, allowing to eg. expose the results in a Rails controller:

    def search
      @articles = Article.search do ... end
      respond_to do |format|
        format.html { render :action => "index" }
        format.json { render json: @articles.as_json(only: ['id', 'title']) }
      end
    end

Closes #527