Ejabberd compatibility

Add unique cookie for iq requests
Add session parameter
Merge pull request #30 from ir4y/master

Ejabberd compatibility