added travis.yml
add elasticsearch service for travis ci
adhere to ruby 1.8.7 syntax
add support for jruby and ruby 1.8.7
adding json gem if ruby version is smaller than 1.9
Merge pull request #24 from aq1018/master

Make gem compatible with ruby 1.8.7 again. Added Travis-ci.org support