adding 1.8.7 support

Ruby 1.8.7 requires adding json as a dependency for use with
faraday_middleware. Added the versions to travis as well.
release: 0.4.0

Adding support and tets for 1.8.7