Fixes Template.ToXml() (U4-3508) and refactored Template.Import to use P...

...ackagingService.ImportTemplates.

Fixed nullreference bug in ImportTemplates when used with XElement("Template"). (Added test for case with one template only)