add support for application/json content type requests

Don't see any reason why Rack should not support application/json content types. This adds support for it, test included.