Updated refs
Implemented template content association
Implemented clone, pre-insert, replace for template contents; Added tests for interaction of selectors and xpath with template contents