Experimental changes.
Added schemaSource to the object definitions.
Added json encoding and decoding using avro.