ejabberd external authentication script for RestAuth