Add hasEditProfile() to determine whether or not a user has edit profile options.

This centralizes the check to profile editing and also allows profile editing if titles or locations are turned on. Currently there is no way to edit titles or locations if you use SSO.
Use the global hasEditProfile() for checks to use the edit profile button.
Merge pull request #2278 from vanilla/hotfix/allow-profile-edit

Clean up the profile edit button checking.