copy txweb/JsonResource import from scrapy

This copies the JsonResource formerly imported from scrapy.utils.txweb.

closes #60
Merge pull request #62 from nyov/selfcontained

copy txweb/JsonResource import from scrapy