Add JsonTester class

Add JsonTester class for testing Representation objects.

Change the sample server to use the new Representation methodology.