public async Task SaveTemplate(ScheduleTemplate template)
		{
			var templateList = await GetTemplatesList();
			if (!templateList.Items.Any(templateInfo => templateInfo.Name.Equals(template.Name)))
				templateList.Items.Add(template.GetTemplateInfo());

			var templateEncodedFile = Path.Combine(Path.GetTempPath(), String.Format("{0}.json", template.Name));
			File.WriteAllText(templateEncodedFile, template.Serialize());

			var templateArchiveFile = new StorageFile(
				AppProfileManager.Instance.SharedFolder.RelativePathParts.Merge(
					new[]
					{
						TemplatesFolderName,
						String.Format("{0}.zip", template.Name)
					}));
			ZipHelper.CompressFiles(new[] { templateEncodedFile }, templateArchiveFile.LocalPath);
			await templateArchiveFile.Upload();
			await SaveTemplatesList(templateList);
		}