Added compatability support for both dojo 1.8 and 1.9
Updated and new demos
Moved function to Ancestry extension
Made template dojo 1.8 and 1.9 compatible
Add documentation and cleanup.