WIP - Abstracting connections and socket events into session wrapper.