ejabberd and friendica

I added a script so that you can authenticate at an ejabberd with the credentials of a friendica installation.

The script that I used and modified is licensed under GPL. I hope this not a problem.