code: function init_session(req) {
  	debug.assert(req.session).is('object');
  	if(!is.obj(req.session.client)) {
  		req.session.client = {};
  	}
  	if( (!is.obj(req.session.client.messages)) || is.array(req.session.client.messages) ) {
  		req.session.client.messages = {};
  	}
  }
docs: Initialize the session