Add support for evaluating json responses

In response to rsolr/rsolr-json#1, here is the JSON functionality pushed up into rsolr itself (and, presumably, doesn't break ruby 1.8)