Huge perf enhancement to GetByQuery on the content repo, so much more like this is easy to fix with massive benefit. For example, the Retrieving_All_Content_In_Site used to run for 143795ms and now runs at 14249ms which is 90% savings.
Updated the ContentTypeRepository PerformGet method to map all property groups and types in a single query and added test to test the query, this reduces the lookup by about 30% but still lots of improvements to be made.
Fixes performance for Get(id) on ContentTypeRepository = much faster now, now to work on getall/query
Fix up right join query to use a proper select and left join (less confusing), fix up getall call when getting a content type, reduce another query and include child ids in the main query.
Updates the GetAll of ContentTypeRepository to use the new mapper which no longer executes one by one this means far less queries, updates GetByQuery to get all int ids and then use GetAll
Merge branch '7.1.5' into 7.1.5-perf

Conflicts:
	src/Umbraco.Tests/packages.config
Makes the dictionary tree moveable by looking up the application alias from the trees registration rather that hard coding to a specific section.
Merge branch '7.2.0' into 7.1.5-perf
Fixes issue with duplicate dictionary entries when wiring up property data
fixes content type mappings
Gets MediaRepository.PerformGetByQuery, MediaTypeRepository.PerformGetByQuery & MediaTypeRepository.PerformGetAll to not have n+1
Renames TagsRepository to TagRepository, Fixes n+1 queries on entity repository, fixes n+1 queries on tag repository, updates umbraco member types to specify an entity type for IMember and IMemberType so the entity repository can use it.
Fixes n+1 queries in the EntityRepository
updates to where clause
Fixes n+1 query on UserRepository.GetAll with id params
Fixes n+1 query on UserRepository.GetByQuery
Fixes n+1 queries for content and media types when resolving their properties and groups, this fixes the n+1 queries with the scheduled publishing too. Adds a test for template mappings, fixes call for GetAll on EntityController to not be called when there are no ids.
fixes the n+1 queries on content and media type controllers and ensures if there are no ids that the query doesn' texeucte.
fixes n+1 query when assigning user types to users in user repo
Fixes n+1 queries on template repository