Permissions are now created correctly for normal, myplaces and analysislayer sources in CreateAnalysis. Permissions are purged if analysis is deleted