Session layer: added connection states and started adding send/recv buffers