adding support for profile photo sync when an ldap flag is set

per APA-142

relates to SC PR 5639

* Fixed the validations used to skip photos based on content type
* Refactor provisioning to cleanly separate photos vs users sync.
* Add more tests to verify when it should / should not post to socialcast based on `is_community_default` and being the proper image format.