Fix resuming XMPP session

Don't reset incoming stanza count on connnection close

Don't bind a resource when bind set to null

Attempt to resume session when possible