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...
Proof that CreateIndexBuilder.NonClustered() does not affect index creation statement on SQL Server.

CreateIndexBuilder_SqlServer_NonClustered_CreatesNonClusteredIndex() fails expecting NONCLUSTERED but getting CLUSTERED.
CreateIndexBuilder_SqlServer_Unique_CreatesUniqueNonClusteredIndex() fails expecting UNIQUE NONCLUSTERED but getting CLUSTERED.
Made CreateIndexBuilder set IndexType in Clustered(), NonClustered() and Unique().
Fix for  U4-3529  Ysod editing Partial View
Fixes up the EntityRepository to use dynamics for media as well so that *all* fields in the main table are returned so we can store this information in AdditionalData, now that this is working nicely we should make the entity repo lookup the properties for content too just like we're doing for media since these get put into AdditionalData as well and there's really not much overhead to do that.

Conflicts:
	src/Umbraco.Core/Persistence/Repositories/EntityRepository.cs
Merge pull request #248 from lars-erik/6.2.0-fix-sqlsyntaxprovider-indexclustring

6.2.0 fix sqlsyntaxprovider indexclustring
Ensures that members are auto-approved if creating a member via the legacy members API.
Fixes: U4-3610 When adding another tab to a member type no members will load and result in a YSOD

Conflicts:
	src/Umbraco.Core/Persistence/Relators/PropertyTypePropertyGroupRelator.cs
Comments out backported code - need to wait till we merge in the custom membership branch.
FIxes installer when duplicate conflicts: U4-3612 Cannot install Txt starter kit in the back office

Conflicts:
	src/umbraco.cms/businesslogic/Packager/Installer.cs
fixes merge issue
Fixes: U4-3587 Can't delete a member when there is a group assigned

Conflicts:
	src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
Merge branch '6.2.0' into NewHead2Synch
My local repo is synched with https://github.com/umbraco/Umbraco-CMS and pushed onto my remote repo, this one https://github.com/ShamilS/Umbraco-CMS