SASL now works again using the new structure; added logging class. Turned of SASL for iCloud, because iCloud is non-standsrd.