Add json gem for ruby 1.8, 1.8 does not have native one.
Add allow failure with 1.8.7 in travis-ci

Allow failure, because some tests fail.
Merge pull request #442 from sanemat/feature/ruby-1-8-7

Add json gem for ruby 1.8, 1.8 does not have native json.