Ruby interface for ejabberd mod_rest.