Custom JSON Transforms : Update sample code

The 'registerTransform' method has been removed, and there is a new
way to register a custom JSON transform.
Update the transform example to match the latest changes.
Merge pull request #760 from jagthedrummer/jeremy/models-transforms

Custom JSON Transforms : Update sample code