Slug field validation

Add better validation of slugs for projects and profiles. Slugs must be unique (either globally or within a given team) and only contain letters, numbers, and dashes.