more work on xmpp, saving credentials and creating a factory service as a wrapper - also for remoteStorage