SLING-3786 - extract JSON formatting code to JSONRenderer and add some missing tests. All unit and related integration tests pass

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1612850 13f79535-47bb-0310-9956-ffa450edef68