Ejabberd compatibility

Add unique cookie for iq requests
Add session parameter