Ability to get a provider name

Added method for getting a provider name (facebook, twitter, etc..). Minor code cleanup.