fixed some major bugs in the cloud code, should now work better. Also th...

...e social db handler has now a savety net when downloading invites, cleans the server if needed