Fixes: U4-3051 GetAncestorOrSelfDocuments gets stuck in infinite loop
Merge pull request #244 from leekelleher/U4-3051

Fixes: U4-3051 GetAncestorOrSelfDocuments gets stuck in infinite loop
Fixes Template.ToXml() (U4-3508) and refactored Template.Import to use PackagingService.ImportTemplates.

Fixed nullreference bug in ImportTemplates when used with XElement("Template"). (Added test for case with one template only)
Merge pull request #246 from lars-erik/6.2.0-fix-U4-3508

Fixes Template.ToXml() (U4-3508) and refactored Template.Import to use P...
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
Created events test and POC