Better request entity handling: more functional, and content encoding is now stored with entities rather than requests.
Added tests for the json4s connectors.