Events fix

Well looked like the events had not flown in the right way. too much wrong order and duplicates.
I also added a [new test](https://github.com/node-xmpp/node-xmpp-client/blob/events-fix/test/reconnect.js) to the client to check reconnecting, there is still a bug definitely  sitting around somewhere, because connect attempts from  [client/test/sasl.js](https://github.com/node-xmpp/node-xmpp-client/blob/events-fix/test/sasl.js) are caught as errors in [client/test/reconnect.js](https://github.com/node-xmpp/node-xmpp-client/blob/events-fix/test/reconnect.js#L112). weird.

**PRs**
node-xmpp/node-xmpp-client#31
node-xmpp/node-xmpp-component#12
node-xmpp/node-xmpp-server#30

**related Issues**
node-xmpp/node-xmpp-core#24
node-xmpp/node-xmpp-component#11