Added session id support for connections and bits and pieces.