The Samples plugin is an example of how to extend Z-Ray, and includes a basic implementation of the Z-Ray extension API.