Added ConnectionPreferences to allow you to use multiple identities and eventually override default settings