Ejabberd compatibility

Library doesn't work with default ejabberd configuration, because it need opened session.
I add session option and iq request to server for setting up session.
Also i add id generator for iq requests. I think harcoded id="x" isn't good.

I didn't change NewClient and NewClientNoTLS function for backward capability