message: add rid unload handler
diff: @@ -68,6 +68,7 @@ export default class Connector {
  this.storeConnectionParameters(stropheConnection);
  this.replaceConnectionHandler(stropheConnection);
  this.addRidHandler(stropheConnection);
  + this.addRidUnloadHandler(stropheConnection);
  let accountConnection = this.account.getConnection();
  let handlers = (<StorageConnection>accountConnection).getHandlers(); //@TODO fix connection interface
  @@ -125,6 +126,12 @@ export default class Connector {
  };
  }
  + private addRidUnloadHandler(connection) {
  + $(window).on('unload', () => {
  + connection.nextValidRid(connection._proto.rid);
  + });
  + }
  +
  private storeConnectionFeatures(connection) {
  let from = new JID('', connection.domain, '');
  let stanza = connection.features;
  